]> source.dussan.org Git - jquery.git/commitdiff
Removed support for the XPath [n] - we weren't doing it right, and it would actually...
authorJohn Resig <jeresig@gmail.com>
Sat, 28 Apr 2007 15:43:18 +0000 (15:43 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 28 Apr 2007 15:43:18 +0000 (15:43 +0000)
src/selector/selector.js

index be50d332f2e547a8200c4f88ac92b679d068ab35..00d8aba0aa1dba4ceff05e224bb09cdcb64a052b 100644 (file)
@@ -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