From: Dave Methvin Date: Fri, 4 Jan 2013 22:21:43 +0000 (-0500) Subject: Fix #12945. Check for .getAttribute so IE9 is happy. X-Git-Tag: 2.0.0b1~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e9ab6a74d42df94cb967d5e275b61ce91b33af28;p=jquery.git Fix #12945. Check for .getAttribute so IE9 is happy. --- diff --git a/src/attributes.js b/src/attributes.js index ed6490080..bd6c20e7b 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 ?