diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-01-02 21:10:54 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-01-03 20:55:56 -0500 |
commit | 4ee1b03c54ff8c8f5cfd983aeaa13bbba212ffe3 (patch) | |
tree | 2bcfcc105efdd82cfda7e817b3ed0c2666b425d0 /src/support.js | |
parent | 11e6a6600255932fa790720899e9e6ffc3a8d5f3 (diff) | |
download | jquery-4ee1b03c54ff8c8f5cfd983aeaa13bbba212ffe3.tar.gz jquery-4ee1b03c54ff8c8f5cfd983aeaa13bbba212ffe3.zip |
Remove oldIE submit/change bubble detects.
Diffstat (limited to 'src/support.js')
-rw-r--r-- | src/support.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/support.js b/src/support.js index abe7c1bfe..36b91b5e4 100644 --- a/src/support.js +++ b/src/support.js @@ -1,6 +1,6 @@ jQuery.support = (function() { - var support, all, a, select, opt, input, fragment, eventName, i, + var support, all, a, select, opt, input, fragment, div = document.createElement("div"); // Setup @@ -82,13 +82,10 @@ jQuery.support = (function() { div.cloneNode( true ).click(); } - // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event) + // Support: Firefox 17+ // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP), test/csp.php - for ( i in { submit: true, change: true, focusin: true }) { - div.setAttribute( eventName = "on" + i, "t" ); - - support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false; - } + div.setAttribute( "onfocusin", "t" ); + support.focusinBubbles = "onfocusin" in window || div.attributes.onfocusin.expando === false; // Run tests that need a body at doc ready jQuery(function() { |