X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fselector%2Fselector.js;h=9f982a85cf7a95f4e0c3905a4ef91eb17bbf5cb9;hb=91410044426439983f409d198b8f9af2c5151d95;hp=6a5760a70ab20b65e25e980dcb69cbb3a3a35fe7;hpb=34355cd6986d5939dc711c531263cb561cba5f24;p=jquery.git diff --git a/src/selector/selector.js b/src/selector/selector.js index 6a5760a..9f982a8 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -45,7 +45,7 @@ jQuery.extend({ submit: "a.type=='submit'", image: "a.type=='image'", reset: "a.type=='reset'", - button: 'a.type=="button"||a.nodeName=="BUTTON"', + button: 'a.type=="button"||a.nodeName.toUpperCase()=="BUTTON"', input: "/input|select|textarea|button/i.test(a.nodeName)" }, ".": "jQuery.className.has(a,m[2])", @@ -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 ); }); @@ -226,7 +226,7 @@ jQuery.extend({ // Do a quick check for node name (where applicable) so // that div#foo searches will be really fast ret = r = oid && - (!m[3] || oid.nodeName == m[3].toUpperCase()) ? [oid] : []; + (!m[3] || oid.nodeName.toUpperCase() == m[3].toUpperCase()) ? [oid] : []; } else { // Pre-compile a regular expression to handle class searches