Fix issue with child selector in Firefox 3.5
authorGrauw <laurens.hg@grauw.nl>
Mon Sep 28 10:59:16 2009 +0200 (2009-09-28)
changeset 64e8e519ee8795
parent 63 7da8f00e072f
child 65 e4c49ae58ecb
Fix issue with child selector in Firefox 3.5
They implemented IE’s Node.children collection, but failed to implement its tags() method.
src/selector.js
     1.1 --- a/src/selector.js	Mon Sep 28 10:58:23 2009 +0200
     1.2 +++ b/src/selector.js	Mon Sep 28 10:59:16 2009 +0200
     1.3 @@ -475,7 +475,7 @@
     1.4  			var aNodes,
     1.5  				oSimpleSelector = this.simpleSelectors[0],
     1.6  				iStart = 0;
     1.7 -			if (oNode.children && !browser_webkit && oSimpleSelector.type == SimpleSelector.TYPE) {
     1.8 +			if (oNode.children && oNode.children.tags && !browser_webkit && oSimpleSelector.type == SimpleSelector.TYPE) {
     1.9  				aNodes = oNode.children.tags(oSimpleSelector.arg1);
    1.10  				iStart++;
    1.11  			} else {