]> source.dussan.org Git - jquery.git/commitdiff
Fix #12945. Check for .getAttribute so IE9 is happy.
authorDave Methvin <dave.methvin@gmail.com>
Fri, 4 Jan 2013 22:21:43 +0000 (17:21 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Fri, 4 Jan 2013 22:35:01 +0000 (17:35 -0500)
src/attributes.js

index ed6490080506278e8495a4fe001ec8aa3fc5c380..bd6c20e7b4450e5ea4d44dcceedcef4bb1b83272 100644 (file)
@@ -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 ?