Skip to content
Permalink
Browse files
Ref 4ef5169: Update selector-native for new Sizzle dependencies
  • Loading branch information
gibson042 committed Apr 5, 2013
1 parent 5d1dfe7 commit 1114611
Showing 1 changed file with 5 additions and 0 deletions.
@@ -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 );

This comment has been minimized.

Copy link
@jdalton

jdalton Apr 19, 2013

Member

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

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

This comment has been minimized.

Copy link
@timmywil

timmywil Apr 19, 2013

Member

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

This comment has been minimized.

Copy link
@jdalton

jdalton Apr 19, 2013

Member

Ooh snap :D

},
attr: function( elem, name ) {
return elem.getAttribute( name );
}
});

0 comments on commit 1114611

Please sign in to comment.