CHILD positions were being cached improperly. Tweaked it and added a test to make...
[jquery.git] / src / selector.js
index 6b68cb2..8af3a0d 100644 (file)
@@ -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;