diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-12-22 14:16:55 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-12-22 14:16:55 +0300 |
commit | b87e93bdc92dfcb96fcd5ef26e528cbfaa42c8bf (patch) | |
tree | 6469e7f809cc4de7217be35e15f87f58a7b189fe /test | |
parent | 83391859bda90f630bf02a5e04d82e9f1babeb1f (diff) | |
download | jquery-b87e93bdc92dfcb96fcd5ef26e528cbfaa42c8bf.tar.gz jquery-b87e93bdc92dfcb96fcd5ef26e528cbfaa42c8bf.zip |
Revert "Attributes: do not set properties to false when removing booleans"
This reverts commit 5c086c3782459307c44397549fef15a87c8b90c4.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/attributes.js | 2 |
1 files changed, 1 insertions, 1 deletions
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" ); |