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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue