Skip to content
Permalink
Browse files
Added fix for broken child selectors in XML documents, bug #1346.
  • Loading branch information
jeresig committed Jul 5, 2007
1 parent 38d74fe commit 6f064fc9c527a46b4de16f0af310b98d1a87b0f4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/selector/selector.js
@@ -134,7 +134,7 @@ jQuery.extend({
// Perform our own iteration and filter
for ( var i = 0; ret[i]; i++ )
for ( var c = ret[i].firstChild; c; c = c.nextSibling )
if ( c.nodeType == 1 && (nodeName == "*" || c.nodeName == nodeName.toUpperCase()) )
if ( c.nodeType == 1 && (nodeName == "*" || c.nodeName.toUpperCase() == nodeName.toUpperCase()) )
r.push( c );

ret = r;
@@ -157,7 +157,7 @@ jQuery.extend({
if ( n.nodeType == 1 ) {
if ( m == "~" && n.mergeNum == mergeNum ) break;

if (!nodeName || n.nodeName == nodeName.toUpperCase() ) {
if (!nodeName || n.nodeName.toUpperCase() == nodeName.toUpperCase() ) {
if ( m == "~" ) n.mergeNum = mergeNum;
r.push( n );
}

0 comments on commit 6f064fc

Please sign in to comment.