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 1114611f77ee9cd203db65b120d397dbe2f14d14
Showing with 5 additions and 0 deletions.
  1. +5 −0 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 );

This comment has been minimized.

@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.

@timmywil

timmywil Apr 19, 2013

Member

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

This comment has been minimized.

@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.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.