Fixed an issue with child selectors and XML documents (nodeName isn't in all-caps, and it was assumed that it was).
This commit is contained in:
parent
7b3ab69fcf
commit
ddb3004a47
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue