aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/attributes.js4
1 files changed, 3 insertions, 1 deletions
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 ?