From: Richard Gibson Date: Fri, 5 Apr 2013 05:04:44 +0000 (-0400) Subject: Ref 4ef51690: Update selector-native for new Sizzle dependencies X-Git-Tag: 2.0.0-beta3~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1114611f77ee9cd203db65b120d397dbe2f14d14;p=jquery.git Ref 4ef51690: Update selector-native for new Sizzle dependencies --- 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 ); } });