X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fattributes.js;h=82a4de1bd1136afc159eb680f1bde7ff328930f7;hb=0912109ffc86610161c769534df84400ccd1aa65;hp=004c6b30ca0bd1dfa4f02cc6cc05502acd904742;hpb=21e15219be8e04b3fe25d05a65abfaef96830b9f;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index 004c6b3..82a4de1 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -281,7 +281,7 @@ jQuery.extend({ if ( set ) { // We can't allow the type property to be changed (since it causes problems in IE) if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) { - throw "type property can't be changed"; + jQuery.error( "type property can't be changed" ); } elem[ name ] = value;