diff options
author | John Resig <jeresig@gmail.com> | 2007-01-22 00:28:23 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-01-22 00:28:23 +0000 |
commit | 91410044426439983f409d198b8f9af2c5151d95 (patch) | |
tree | d3a426951f99644d08106d4ea323bd5ca1326035 | |
parent | ddb3004a476d6eec3d449bc39d93fb5b5f98f01b (diff) | |
download | jquery-91410044426439983f409d198b8f9af2c5151d95.tar.gz jquery-91410044426439983f409d198b8f9af2c5151d95.zip |
Fixed some more nodeName inconsistencies.
-rw-r--r-- | src/selector/selector.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js index be279a7fc..9f982a85c 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])", @@ -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 |