]> source.dussan.org Git - jquery.git/commitdiff
No longer need to check for objects or string of null with the special form treatment...
authortimmywil <tim.willison@thisismedium.com>
Sat, 26 Mar 2011 03:10:59 +0000 (23:10 -0400)
committertimmywil <tim.willison@thisismedium.com>
Sun, 3 Apr 2011 23:13:40 +0000 (19:13 -0400)
src/attributes.js

index bfeb6c4e133649f7f85564c8be38d9ee920dd385..44b16825bbb31cd662082cc556322e9c1be45134 100644 (file)
@@ -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;
                        }