aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector/selector.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-03-25 02:45:12 +0000
committerJohn Resig <jeresig@gmail.com>2007-03-25 02:45:12 +0000
commit25b424134f9927a5bf0bab5cba836a0aa6c3cfc1 (patch)
tree9cba863f74bfd9aa0faf5b9d3adbb9b0aa194473 /src/selector/selector.js
parentae208246fbd1708b72e822b61c9e24d3034d1a05 (diff)
downloadjquery-25b424134f9927a5bf0bab5cba836a0aa6c3cfc1.tar.gz
jquery-25b424134f9927a5bf0bab5cba836a0aa6c3cfc1.zip
Diffstat (limited to 'src/selector/selector.js')
-rw-r--r--src/selector/selector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js
index 1c6d80c1e..cc37584f5 100644
--- a/src/selector/selector.js
+++ b/src/selector/selector.js
@@ -61,7 +61,7 @@ jQuery.extend({
},
_prefix: "z=a[m[3]];if(!z||/href|src/.test(m[3]))z=jQuery.attr(a,m[3]);"
},
- "[": "jQuery.find(m[2],a).length"
+ "[": "parseInt(m[2])?jQuery.nth(a.parentNode.firstChild,parseInt(m[2]),'nextSibling',a)==a:jQuery.find(m[2],a).length"
},
// The regular expressions that power the parsing engine