diff --git a/src/attributes/attr.js b/src/attributes/attr.js index b627fe888..caf0bc018 100644 --- a/src/attributes/attr.js +++ b/src/attributes/attr.js @@ -32,7 +32,7 @@ jQuery.extend({ } // Fallback to prop when attributes are not supported - if ( !elem.getAttribute ) { + if ( typeof elem.getAttribute === "undefined" ) { return jQuery.prop( elem, name, value ); }