From 7632b7454b8a918b5eb9ade199a6a842eae98571 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Mon, 16 Mar 2015 14:11:38 -0400 Subject: Attributes: revert returning null for non-elements --- src/attributes/attr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/attributes/attr.js b/src/attributes/attr.js index 201a2d2a6..3bb05a5a3 100644 --- a/src/attributes/attr.js +++ b/src/attributes/attr.js @@ -28,7 +28,7 @@ jQuery.extend({ // don't get/set attributes on text, comment and attribute nodes if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return null; + return; } // Fallback to prop when attributes are not supported -- cgit v1.2.3