Skip to content

Commit 4ee1b03

Browse files
committed
Remove oldIE submit/change bubble detects.
1 parent 11e6a66 commit 4ee1b03

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/support.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jQuery.support = (function() {
22

3-
var support, all, a, select, opt, input, fragment, eventName, i,
3+
var support, all, a, select, opt, input, fragment,
44
div = document.createElement("div");
55

66
// Setup
@@ -82,13 +82,10 @@ jQuery.support = (function() {
8282
div.cloneNode( true ).click();
8383
}
8484

85-
// Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event)
85+
// Support: Firefox 17+
8686
// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP), test/csp.php
87-
for ( i in { submit: true, change: true, focusin: true }) {
88-
div.setAttribute( eventName = "on" + i, "t" );
89-
90-
support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false;
91-
}
87+
div.setAttribute( "onfocusin", "t" );
88+
support.focusinBubbles = "onfocusin" in window || div.attributes.onfocusin.expando === false;
9289

9390
// Run tests that need a body at doc ready
9491
jQuery(function() {

0 commit comments

Comments
 (0)