aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2013-01-04 17:21:43 -0500
committerDave Methvin <dave.methvin@gmail.com>2013-01-04 17:35:01 -0500
commite9ab6a74d42df94cb967d5e275b61ce91b33af28 (patch)
tree8e71897fa9d9b1f5326392f96427e0cee6630e5f /src/attributes.js
parent8ac7fa71b5df5ff00f0212976abd8b0c80d3956f (diff)
downloadjquery-e9ab6a74d42df94cb967d5e275b61ce91b33af28.tar.gz
jquery-e9ab6a74d42df94cb967d5e275b61ce91b33af28.zip
Fix #12945. Check for .getAttribute so IE9 is happy.
Diffstat (limited to 'src/attributes.js')
-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 ?