mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 05:15:22 -05:00
Attributes: revert returning null for non-elements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user