From: timmywil Date: Sat, 26 Mar 2011 03:10:59 +0000 (-0400) Subject: No longer need to check for objects or string of null with the special form treatment... X-Git-Tag: 1.6b1~27^2~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=448111cbd432864d0ae03c70ae321e97de989e9b;p=jquery.git No longer need to check for objects or string of null with the special form treatment and updates to removeAttr --- diff --git a/src/attributes.js b/src/attributes.js index bfeb6c4e1..44b16825b 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; }