mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Attributes: revert returning null for non-elements
This commit is contained in:
@@ -371,7 +371,7 @@ test( "attr(String, Object)", function() {
|
||||
jQuery.each( [ commentNode, textNode, attributeNode ], function( i, elem ) {
|
||||
var $elem = jQuery( elem );
|
||||
$elem.attr( "nonexisting", "foo" );
|
||||
strictEqual( $elem.attr("nonexisting"), null, "attr(name, value) works correctly on comment and text nodes (bug #7500)." );
|
||||
strictEqual( $elem.attr("nonexisting"), undefined, "attr(name, value) works correctly on comment and text nodes (bug #7500)." );
|
||||
});
|
||||
|
||||
jQuery.each( [ window, document, obj, "#firstp" ], function( i, elem ) {
|
||||
|
||||
Reference in New Issue
Block a user