aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2009-03-17 22:27:25 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2009-03-17 22:27:25 +0000
commite73990a566fcb2dac71e1a25ec83382645adc5b7 (patch)
tree84990cb2f4a7c0d9a2c67ea9046ed04d47358d19 /src/core.js
parentaabf635cfe9b75fce3d96eb3e40e25f4a29ea99b (diff)
downloadjquery-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.js2
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;