From 448111cbd432864d0ae03c70ae321e97de989e9b Mon Sep 17 00:00:00 2001 From: timmywil Date: Fri, 25 Mar 2011 23:10:59 -0400 Subject: [PATCH] No longer need to check for objects or string of null with the special form treatment and updates to removeAttr --- src/attributes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }