From e1e47cddd64e904606c6d239d1d3e1d647f23df6 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sun, 7 Jan 2007 22:51:41 +0000 Subject: [PATCH] Added support for [@foo] against DOM object properties (not just attributes). --- src/selector/selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selector/selector.js b/src/selector/selector.js index 7f71e2e34..a478376f8 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -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" }, -- 2.39.5