From 4e0bc169df0f6dee45fe7c19925216453b431ebb Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Sun, 6 Jan 2013 21:47:02 -0500 Subject: [PATCH] Fix #12863. Prevent oldIE from calling `.removeAttribute` --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manipulation.js b/src/manipulation.js index e8c0fe46f..3393dd0a5 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -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 { -- 2.39.5