aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-03-25 23:10:59 -0400
committertimmywil <tim.willison@thisismedium.com>2011-04-03 19:13:40 -0400
commit448111cbd432864d0ae03c70ae321e97de989e9b (patch)
tree63f5d7878b99ccbab8c89d5af876f66dc5d531d8 /src/attributes.js
parent5caf7d837630df4ac8e8fb21c79582dc897903f5 (diff)
downloadjquery-448111cbd432864d0ae03c70ae321e97de989e9b.tar.gz
jquery-448111cbd432864d0ae03c70ae321e97de989e9b.zip
No longer need to check for objects or string of null with the special form treatment and updates to removeAttr
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js3
1 files changed, 1 insertions, 2 deletions
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;
}