Commit ddb3004a authored by John Resig's avatar John Resig

Fixed an issue with child selectors and XML documents (nodeName isn't in...

Fixed an issue with child selectors and XML documents (nodeName isn't in all-caps, and it was assumed that it was).
parent 7b3ab69f
...@@ -155,7 +155,7 @@ jQuery.extend({ ...@@ -155,7 +155,7 @@ jQuery.extend({
// Perform our own iteration and filter // Perform our own iteration and filter
jQuery.each( ret, function(){ jQuery.each( ret, function(){
for ( var c = this.firstChild; c; c = c.nextSibling ) 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 ); r.push( c );
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment