diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2007-05-13 17:20:03 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2007-05-13 17:20:03 +0000 |
commit | 7c6100f5ed840b49e8e0de1f9eb90ea2ef1c47ef (patch) | |
tree | 7279df394d1c5f4dee3a478c6637b821e5187d83 /src/selector/selector.js | |
parent | ff4f265bc0273bda0c8873d470aefa20170abc41 (diff) | |
download | jquery-7c6100f5ed840b49e8e0de1f9eb90ea2ef1c47ef.tar.gz jquery-7c6100f5ed840b49e8e0de1f9eb90ea2ef1c47ef.zip |
Fix for #1169
Diffstat (limited to 'src/selector/selector.js')
-rw-r--r-- | src/selector/selector.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js index 863148aa1..6ad8e5cca 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -229,7 +229,8 @@ jQuery.extend({ // Do a quick check for the existence of the actual ID attribute // to avoid selecting by the name attribute in IE - if ( (jQuery.browser.msie||jQuery.browser.opera) && oid && oid.id != m[2] ) + // also check to insure id is a string to avoid selecting an element with the name of 'id' inside a form + if ( (jQuery.browser.msie||jQuery.browser.opera) && oid && typeof oid.id == "string" && oid.id != m[2] ) oid = jQuery('[@id="'+m[2]+'"]', elem)[0]; // Do a quick check for node name (where applicable) so |