aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/attributes.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js
index dc9a333bb..564eaeeb8 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -320,7 +320,8 @@ jQuery.extend({
ret = elem.getAttribute( name );
// Non-existent attributes return null, we normalize to undefined
- return ret === null || ret === "null" ?
+ // Instead of checking for null, we check for typeof object to catch inputs in IE6/7. Bug #7472
+ return typeof ret === "object" || ret === "null" ?
undefined :
ret;
}