Attributes: revert returning null for non-elements

This commit is contained in:
Timmy Willison
2015-03-16 14:11:38 -04:00
parent 5dc4616ca0
commit 7632b7454b
2 changed files with 2 additions and 2 deletions

View File

@@ -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