Skip to content
Permalink
Browse files

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

  • Loading branch information...
dmethvin committed Jan 4, 2013
1 parent 8ac7fa7 commit e9ab6a74d42df94cb967d5e275b61ce91b33af28
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/attributes.js
@@ -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 ?

0 comments on commit e9ab6a7

Please sign in to comment.
You can’t perform that action at this time.