]> source.dussan.org Git - jquery.git/commitdiff
Ref 4ef51690: Update selector-native for new Sizzle dependencies
authorRichard Gibson <richard.gibson@gmail.com>
Fri, 5 Apr 2013 05:04:44 +0000 (01:04 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Fri, 5 Apr 2013 05:04:44 +0000 (01:04 -0400)
src/selector-native.js

index 7d0ead9a45613488e44d6ecc126f1b91e3a49f4b..22340916de5c45d2f46173d8a7ba9431d505815d 100644 (file)
@@ -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 );
        }
 });