Commit e9ab6a74 authored by Dave Methvin's avatar Dave Methvin

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

parent 8ac7fa71
......@@ -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 ?
......
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