X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=271e7c434fb8693ed09a4c8e39c0e3fa982be1ae;hb=e73990a566fcb2dac71e1a25ec83382645adc5b7;hp=446c82e58b9a6ed9bd0cca5357955f26db5d09ee;hpb=aabf635cfe9b75fce3d96eb3e40e25f4a29ea99b;p=jquery.git diff --git a/src/core.js b/src/core.js index 446c82e..271e7c4 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;