aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js
index 4193bbffb..754a35e87 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -330,7 +330,11 @@ jQuery.extend({
} else {
- ret = elem.getAttribute( name );
+ // In IE9+, Flash objects don't have .getAttribute (#12945)
+ // Support: IE9+
+ if ( typeof elem.getAttribute !== "undefined" ) {
+ ret = elem.getAttribute( name );
+ }
// Non-existent attributes return null, we normalize to undefined
return ret == null ?