]> source.dussan.org Git - jquery.git/commitdiff
Fix #12863. Prevent oldIE from calling `.removeAttribute`
authorDave Methvin <dave.methvin@gmail.com>
Mon, 7 Jan 2013 02:47:02 +0000 (21:47 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Mon, 7 Jan 2013 02:47:02 +0000 (21:47 -0500)
src/manipulation.js

index e8c0fe46f9237e5a7a18af4b7d39c015a7ab8d49..3393dd0a566a70401b0b95f6e52a36ec3fdac4b4 100644 (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 {