title: onpaste / paste event not firing for table on first few attempts
body: <p><strong><em>Google Chrome specific -</em></strong> <em>this is an internal-use app that does not require cross-browser compatibility</em></p>
  
  <p>See <a href="http://jsfiddle.net/spetnik/vpcyt4yv/" rel="noreferrer">http://jsfiddle.net/spetnik/vpcyt4yv/</a></p>
  
  <p>I have a table into which I am attempting to allow pasting of data. I made the individual cells selectable as such:</p>
  
  <pre><code>&lt;td tabindex="0"&gt;
  </code></pre>
  
  <p>I originally tried adding the onpaste event to the TD elements themselves, but this did not work at all. So instead, I added the event to the table element and just check to make sure that the focused element is a TD and then paste the data to that element:</p>
  
  <pre><code>document.getElementById("tblData").onpaste = function(evt){
      if(document.querySelector(":focus").tagName.toLowerCase() != "td"){
          return;
      }
  
      document.querySelector(":focus").innerText = evt.clipboardData.getData("text/plain");
  };
  </code></pre>
  
  <p>While this does essentially work, the event usually does not fire on the first attempt. It seems that I need to either a) click around in the table a random number of times (each time is different) or b) change focus to another window and then back again before the event fires. In the jsFiddle I have added a console.log() call to the very beginning of the event so that I can see exactly when the event fires in the debug pane.</p>
  
  <p>See the above jsFiddle or just the result at <a href="https://jsfiddle.net/spetnik/vpcyt4yv/embedded/result/" rel="noreferrer">https://jsfiddle.net/spetnik/vpcyt4yv/embedded/result/</a></p>