Skip to content

Commit

Permalink
Ref #12945, IE9/10 still needs safe .getAttribute check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Jan 5, 2013
1 parent e9ab6a7 commit c0241a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ jQuery.extend({

// In IE9+, Flash objects don't have .getAttribute (#12945)
// Support: IE9+
ret = elem.getAttribute && elem.getAttribute( name );
if ( typeof elem.getAttribute !== "undefined" ) {
ret = elem.getAttribute( name );
}

// Non-existent attributes return null, we normalize to undefined
return ret == null ?
Expand Down

0 comments on commit c0241a4

Please sign in to comment.