diff --git a/src/attributes.js b/src/attributes.js index bfeb6c4e..44b16825 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -328,8 +328,7 @@ jQuery.extend({ ret = elem.getAttribute( name ); // Non-existent attributes return null, we normalize to undefined - // Instead of checking for null, we check for typeof object to catch inputs in IE6/7. Bug #7472 - return typeof ret === "object" || ret === "null" ? + return ret === null ? undefined : ret; }