From e9ab6a74d42df94cb967d5e275b61ce91b33af28 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Fri, 4 Jan 2013 17:21:43 -0500 Subject: [PATCH] Fix #12945. Check for .getAttribute so IE9 is happy. --- src/attributes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/attributes.js b/src/attributes.js index ed64900805..bd6c20e7b4 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -327,7 +327,9 @@ jQuery.extend({ } else { - ret = elem.getAttribute( name ); + // In IE9+, Flash objects don't have .getAttribute (#12945) + // Support: IE9+ + ret = elem.getAttribute && elem.getAttribute( name ); // Non-existent attributes return null, we normalize to undefined return ret == null ?