diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2009-03-17 22:27:25 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2009-03-17 22:27:25 +0000 |
commit | e73990a566fcb2dac71e1a25ec83382645adc5b7 (patch) | |
tree | 84990cb2f4a7c0d9a2c67ea9046ed04d47358d19 /src/core.js | |
parent | aabf635cfe9b75fce3d96eb3e40e25f4a29ea99b (diff) | |
download | jquery-e73990a566fcb2dac71e1a25ec83382645adc5b7.tar.gz jquery-e73990a566fcb2dac71e1a25ec83382645adc5b7.zip |
fix for #3688, setting type attribute on button causes IE to throw error
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 446c82e58..271e7c434 100644 --- a/src/core.js +++ b/src/core.js @@ -1004,7 +1004,7 @@ jQuery.extend({ if ( name in elem && notxml && !special ) { if ( set ){ // We can't allow the type property to be changed (since it causes problems in IE) - if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode ) + if ( name == "type" && elem.nodeName.match(/(button|input)/i) && elem.parentNode ) throw "type property can't be changed"; elem[ name ] = value; |