Fix #12863. Prevent oldIE from calling .removeAttribute

This commit is contained in:
Dave Methvin 2013-01-06 21:47:02 -05:00
parent bbdf957e98
commit 4e0bc169df

View File

@ -780,7 +780,7 @@ jQuery.extend({
if ( deleteExpando ) {
delete elem[ internalKey ];
} else if ( elem.removeAttribute ) {
} else if ( typeof elem.removeAttribute !== "undefined" ) {
elem.removeAttribute( internalKey );
} else {