diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2013-04-05 01:04:44 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-04-05 01:04:44 -0400 |
commit | 1114611f77ee9cd203db65b120d397dbe2f14d14 (patch) | |
tree | c005908fcc5d1eaf179f0c779271601efcc5bba2 | |
parent | 5d1dfe747403c093cc0e837651dcf80027387fc6 (diff) | |
download | jquery-1114611f77ee9cd203db65b120d397dbe2f14d14.tar.gz jquery-1114611f77ee9cd203db65b120d397dbe2f14d14.zip |
Ref 4ef51690: Update selector-native for new Sizzle dependencies
-rw-r--r-- | src/selector-native.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/selector-native.js b/src/selector-native.js index 7d0ead9a4..22340916d 100644 --- a/src/selector-native.js +++ b/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 ); + }, + attr: function( elem, name ) { + return elem.getAttribute( name ); } }); |