title: Chrome (maybe Safari?) fires "blur" twice on input fields when browser loses focus
body: <p><a href="http://jsfiddle.net/Pointy/pDYsM/" rel="nofollow noreferrer">Here is an interesting jsfiddle.</a> <code></code></p>
  
  <p>In Firefox:</p>
  
  <ol>
  <li>Run the fiddle</li>
  <li>Click in text input</li>
  <li>Click somewhere else. Should say "1 blurs".</li>
  <li>Click in the text input again.</li>
  <li><kbd>ALT</kbd>-<kbd>TAB</kbd> to another window. Fiddle should now say "2 blurs".</li>
  </ol>
  
  <p>In Chrome, at step 5, it says "3 blurs".  Two separate "blur" events are fired when the whole browser loses focus.  This is of interest because it means that it's not safe to assume, in a "blur" handler, that the element actually had focus just before the event was dispatched; that is, that the loss of focus &mdash; the transition from "being in focus" to "not being in focus" &mdash; is the reason for the event. When <em>two</em> "blur" events are generated, that condition is not satisfied during the handling of the second event, as the element is already not in focus.</p>
  
  <p>So is this just a bug?  Is there a way to tell that a "blur" event is bogus?</p>