mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fix #12945. Check for .getAttribute so IE9 is happy.
This commit is contained in:
@@ -330,7 +330,11 @@ jQuery.extend({
|
||||
|
||||
} 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
|
||||
return ret == null ?
|
||||
|
||||
Reference in New Issue
Block a user