]> source.dussan.org Git - jquery.git/commitdiff
Added support for [@foo] against DOM object properties (not just attributes).
authorJohn Resig <jeresig@gmail.com>
Sun, 7 Jan 2007 22:51:41 +0000 (22:51 +0000)
committerJohn Resig <jeresig@gmail.com>
Sun, 7 Jan 2007 22:51:41 +0000 (22:51 +0000)
src/selector/selector.js

index 7f71e2e346efb9ce9d29a646ad4e4e94efe390e4..a478376f8f3fc9721a99bb93211a385a472c8ab1 100644 (file)
@@ -59,7 +59,7 @@ jQuery.extend({
                        _resort: function(m){
                                return ["", m[1], m[3], m[2], m[5]];
                        },
-                       _prefix: "z=jQuery.attr(a,m[3]);"
+                       _prefix: "z=a[m[3]]||jQuery.attr(a,m[3]);"
                },
                "[": "jQuery.find(m[2],a).length"
        },