aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2013-01-04 22:29:27 -0500
committerDave Methvin <dave.methvin@gmail.com>2013-01-04 22:29:27 -0500
commitc0241a47e270cd0e0ac2b2a0fdefc5a3a15b5ae6 (patch)
treed955d1947fe7780f4edb265b352703f88e3d518c /src
parente9ab6a74d42df94cb967d5e275b61ce91b33af28 (diff)
downloadjquery-c0241a47e270cd0e0ac2b2a0fdefc5a3a15b5ae6.tar.gz
jquery-c0241a47e270cd0e0ac2b2a0fdefc5a3a15b5ae6.zip
Ref #12945, IE9/10 still needs safe .getAttribute check.
Diffstat (limited to 'src')
-rw-r--r--src/attributes.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js
index bd6c20e7b..fd40f0018 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -329,7 +329,9 @@ jQuery.extend({
// In IE9+, Flash objects don't have .getAttribute (#12945)
// Support: IE9+
- ret = elem.getAttribute && elem.getAttribute( name );
+ if ( typeof elem.getAttribute !== "undefined" ) {
+ ret = elem.getAttribute( name );
+ }
// Non-existent attributes return null, we normalize to undefined
return ret == null ?