mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
No longer need to check for objects or string of null with the special form treatment and updates to removeAttr
This commit is contained in:
parent
5caf7d8376
commit
448111cbd4
@ -328,8 +328,7 @@ jQuery.extend({
|
|||||||
ret = elem.getAttribute( name );
|
ret = elem.getAttribute( name );
|
||||||
|
|
||||||
// Non-existent attributes return null, we normalize to undefined
|
// 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 ret === null ?
|
||||||
return typeof ret === "object" || ret === "null" ?
|
|
||||||
undefined :
|
undefined :
|
||||||
ret;
|
ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user