Regression(r236795) Check boxes are sometimes checked when they should not be
[WebKit-https.git] / LayoutTests / fast / dom / HTMLInputElement / checkbox-dirty-checkedness-flag.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../../resources/js-test.js"></script>
5 <input id="testCheckbox" type="checkbox" checked>
6 <script>
7 description("Tests that setting the 'checked' content attribute does not set its dirty checkedness flag.");
8 shouldBeTrue("testCheckbox.checked");
9 evalAndLog("testCheckbox.removeAttribute('checked')");
10 shouldBeFalse("testCheckbox.checked");
11 evalAndLog("testCheckbox.setAttribute('checked', '')");
12 shouldBeTrue("testCheckbox.checked");
13 </script>
14 </body>
15 </html>