Commit c0241a47 authored by Dave Methvin's avatar Dave Methvin

Ref #12945, IE9/10 still needs safe .getAttribute check.

parent e9ab6a74
...@@ -329,7 +329,9 @@ jQuery.extend({ ...@@ -329,7 +329,9 @@ jQuery.extend({
// In IE9+, Flash objects don't have .getAttribute (#12945) // In IE9+, Flash objects don't have .getAttribute (#12945)
// Support: IE9+ // 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 // Non-existent attributes return null, we normalize to undefined
return ret == null ? return ret == null ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment