focusin should bubble

focusin should bubble

Focusin and Focusout bubble in IE.   These events should behave the same way in other browsers.

I suggest something like the following:

  1.       if(document.addEventListener){
  2. document.addEventListener('focus', function(ev){
  3. jQuery.event.trigger( 'focusin', null, ev.target )
  4. },true);
  5. document.addEventListener('blur', function(ev){
  6. jQuery.event.trigger( 'focusout', null, ev.target )
  7. },true);
  8. }
I will submit patches for this and anything else I get a thumbs up for.