Commit 7bce5b0e authored by Timmy Willison's avatar Timmy Willison

Attributes: revert returning null for non-existant attributes

Ref https://github.com/jquery/jquery/issues/2118
parent e38138af
......@@ -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;
}
},
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment