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

This commit is contained in:
Dave Methvin
2013-01-04 17:33:16 -05:00
parent abead1c86b
commit a95f35744a

View File

@@ -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 ?