diff options
author | John Resig <jeresig@gmail.com> | 2007-04-28 15:43:18 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-04-28 15:43:18 +0000 |
commit | 09a2e48f45ca106c937d2fbee9e7586ab514dbe7 (patch) | |
tree | 79b2e24435b40a29f6760cf206c88a779a0f567a /src | |
parent | fce2bdf7ff1d5a293690c65de36a7824a50bc54f (diff) | |
download | jquery-09a2e48f45ca106c937d2fbee9e7586ab514dbe7.tar.gz jquery-09a2e48f45ca106c937d2fbee9e7586ab514dbe7.zip |
Removed support for the XPath [n] - we weren't doing it right, and it would actually require a lot of code to "do it right" (much more than what the feature is immediately worth). See ticket #995.
Diffstat (limited to 'src')
-rw-r--r-- | src/selector/selector.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js index be50d332f..00d8aba0a 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -64,7 +64,7 @@ jQuery.extend({ }, _prefix: "z=a[m[3]];if(!z||/href|src/.test(m[3]))z=jQuery.attr(a,m[3]);" }, - "[": "parseInt(m[2])?jQuery.nth(a.parentNode.firstChild,parseInt(m[2]),'nextSibling',a)==a:jQuery.find(m[2],a).length" + "[": "jQuery.find(m[2],a).length" }, // The regular expressions that power the parsing engine |