mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Merged in from Sizzle - a change to child filter selector logic.
This commit is contained in:
parent
95094d1685
commit
944484c3fe
@ -513,9 +513,9 @@ var Expr = Sizzle.selectors = {
|
||||
CHILD: function(elem, match){
|
||||
var type = match[1], parent = elem.parentNode;
|
||||
|
||||
var doneName = match[0];
|
||||
var doneName = "child" + parent.childNodes.length;
|
||||
|
||||
if ( parent && !parent[ doneName ] ) {
|
||||
if ( parent && (!parent[ doneName ] || !elem.nodeIndex) ) {
|
||||
var count = 1;
|
||||
|
||||
for ( var node = parent.firstChild; node; node = node.nextSibling ) {
|
||||
|
Loading…
Reference in New Issue
Block a user