Skip to content

Commit

Permalink
Fix #12945. Check for .getAttribute so IE9 is happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Jan 4, 2013
1 parent 8ac7fa7 commit e9ab6a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/attributes.js
Expand Up @@ -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 ?
Expand Down

0 comments on commit e9ab6a7

Please sign in to comment.