]> source.dussan.org Git - jquery.git/commitdiff
Added fix for broken child selectors in XML documents, bug #1346.
authorJohn Resig <jeresig@gmail.com>
Thu, 5 Jul 2007 02:45:01 +0000 (02:45 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 5 Jul 2007 02:45:01 +0000 (02:45 +0000)
src/selector/selector.js

index 04b68d3e20466a2a25f6c66ce684ac3e1a1d0e19..7011db382fbb296c9475d78f87a26bb543b6724f 100644 (file)
@@ -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 );
                                                                        }