Commit afca0318 authored by Winston Howes's avatar Winston Howes Committed by Timmy Willison

Attributes: return null when attribute does not exist

Fixes gh-2118
Close gh-2129

Conflicts:
	test/unit/attributes.js
parent 6fb2cefc
...@@ -66,12 +66,7 @@ jQuery.extend({ ...@@ -66,12 +66,7 @@ jQuery.extend({
return ret; return ret;
} else { } else {
ret = jQuery.find.attr( elem, name ); return 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