Browse files

Ref 4ef5169: Update selector-native for new Sizzle dependencies

  • Loading branch information...
1 parent 5d1dfe7 commit 1114611f77ee9cd203db65b120d397dbe2f14d14 @gibson042 gibson042 committed Apr 5, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/selector-native.js
View
5 src/selector-native.js
@@ -133,7 +133,9 @@ jQuery.extend({
return (elem.ownerDocument || elem).documentElement.nodeName !== "HTML";
},
expr: {
+ attrHandle: {},
match: {
+ boolean: /^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,
needsContext: /^[\x20\t\r\n\f]*[>+~]/
}
}
@@ -145,5 +147,8 @@ jQuery.extend( jQuery.find, {
},
matchesSelector: function( elem, expr ) {
return matches.call( elem, expr );
@jdalton
jQuery Foundation member
jdalton added a note Apr 19, 2013

Could this be reduced with native matchesSelector/ matches:
http://caniuse.com/matchesselector

You can find it prefixed as document.body.webkitMatchesSelector and friends.

@timmywil
jQuery Foundation member

This is using native matchesSelector. See the top of this file.

@jdalton
jQuery Foundation member
jdalton added a note Apr 19, 2013

Ooh snap :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ },
+ attr: function( elem, name ) {
+ return elem.getAttribute( name );
}
});

0 comments on commit 1114611

Please sign in to comment.