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

This commit is contained in:
Dave Methvin 2013-01-04 17:21:43 -05:00
parent 8ac7fa71b5
commit e9ab6a74d4

View File

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