Added support for [@foo] against DOM object properties (not just attributes).

This commit is contained in:
John Resig 2007-01-07 22:51:41 +00:00
parent 33662cd713
commit e1e47cddd6

View file

@ -59,7 +59,7 @@ jQuery.extend({
_resort: function(m){ _resort: function(m){
return ["", m[1], m[3], m[2], m[5]]; 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" "[": "jQuery.find(m[2],a).length"
}, },