From c0241a47e270cd0e0ac2b2a0fdefc5a3a15b5ae6 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Fri, 4 Jan 2013 22:29:27 -0500 Subject: [PATCH] Ref #12945, IE9/10 still needs safe .getAttribute check. --- src/attributes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/attributes.js b/src/attributes.js index bd6c20e7..fd40f001 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -329,7 +329,9 @@ jQuery.extend({ // In IE9+, Flash objects don't have .getAttribute (#12945) // Support: IE9+ - ret = elem.getAttribute && elem.getAttribute( name ); + if ( typeof elem.getAttribute !== "undefined" ) { + ret = elem.getAttribute( name ); + } // Non-existent attributes return null, we normalize to undefined return ret == null ? -- 2.11.4.GIT