mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
CHILD positions were being cached improperly. Tweaked it and added a test to make sure it doesn't happen again. Fixes jQuery bug #3924.
This commit is contained in:
@@ -495,7 +495,7 @@ var Expr = Sizzle.selectors = {
|
||||
CHILD: function(elem, match){
|
||||
var type = match[1], parent = elem.parentNode;
|
||||
|
||||
var doneName = "child" + parent.childNodes.length;
|
||||
var doneName = match[0];
|
||||
|
||||
if ( parent && (!parent[ doneName ] || !elem.nodeIndex) ) {
|
||||
var count = 1;
|
||||
|
||||
Reference in New Issue
Block a user