From b87e93bdc92dfcb96fcd5ef26e528cbfaa42c8bf Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Tue, 22 Dec 2015 14:16:55 +0300 Subject: Revert "Attributes: do not set properties to false when removing booleans" This reverts commit 5c086c3782459307c44397549fef15a87c8b90c4. --- test/unit/attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/unit/attributes.js b/test/unit/attributes.js index d5826566f..6a8f3acfc 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -574,7 +574,7 @@ QUnit.test( "removeAttr(String)", function( assert ) { assert.equal( jQuery( "#fx-test-group" ).attr( "height", "3px" ).removeAttr( "height" ).get( 0 ).style.height, "1px", "Removing height attribute has no effect on height set with style attribute" ); jQuery( "#check1" ).removeAttr( "checked" ).prop( "checked", true ).removeAttr( "checked" ); - assert.equal( document.getElementById( "check1" ).checked, true, "removeAttr should not set checked to false, since the checked attribute does NOT mirror the checked property" ); + assert.equal( document.getElementById( "check1" ).checked, false, "removeAttr sets boolean properties to false" ); jQuery( "#text1" ).prop( "readOnly", true ).removeAttr( "readonly" ); assert.equal( document.getElementById( "text1" ).readOnly, false, "removeAttr sets boolean properties to false" ); -- cgit v1.2.3