mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fix #12945. Check for .getAttribute so IE9 is happy.
This commit is contained in:
parent
8ac7fa71b5
commit
e9ab6a74d4
@ -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 ?
|
||||
|
Loading…
Reference in New Issue
Block a user