mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 11:15:05 -05:00
Attributes: revert returning null for non-existant attributes
Ref https://github.com/jquery/jquery/issues/2118
This commit is contained in:
@@ -66,7 +66,12 @@ jQuery.extend({
|
||||
return ret;
|
||||
|
||||
} else {
|
||||
return jQuery.find.attr( elem, name );
|
||||
ret = jQuery.find.attr( elem, name );
|
||||
|
||||
// Non-existent attributes return null, we normalize to undefined
|
||||
return ret == null ?
|
||||
undefined :
|
||||
ret;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user