From ddb3004a476d6eec3d449bc39d93fb5b5f98f01b Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 22 Jan 2007 00:25:16 +0000 Subject: [PATCH] Fixed an issue with child selectors and XML documents (nodeName isn't in all-caps, and it was assumed that it was). --- src/selector/selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selector/selector.js b/src/selector/selector.js index 6a5760a..be279a7 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -155,7 +155,7 @@ jQuery.extend({ // Perform our own iteration and filter jQuery.each( ret, function(){ for ( var c = this.firstChild; c; c = c.nextSibling ) - if ( c.nodeType == 1 && ( c.nodeName == m[1].toUpperCase() || m[1] == "*" ) ) + if ( c.nodeType == 1 && ( c.nodeName.toUpperCase() == m[1].toUpperCase() || m[1] == "*" ) ) r.push( c ); }); -- 1.7.10.4