Commit a95f3574 authored by Dave Methvin's avatar Dave Methvin

Fix #12945. Check for .getAttribute so IE9 is happy.

parent abead1c8
...@@ -330,7 +330,11 @@ jQuery.extend({ ...@@ -330,7 +330,11 @@ jQuery.extend({
} else { } 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 // 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