Skip to content
Permalink
Browse files
Fixed an issue with child selectors and XML documents (nodeName isn't…
… in all-caps, and it was assumed that it was).
  • Loading branch information
jeresig committed Jan 22, 2007
1 parent 7b3ab69 commit ddb3004a476d6eec3d449bc39d93fb5b5f98f01b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 );
});

0 comments on commit ddb3004

Please sign in to comment.