blob: 3fa72d145730eac63d30caa3f8a750dc79e343bc [file] [log] [blame]
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<div id="console"></div>
<script>
var el = document.createElement("input");
el.setAttribute("type", "checkbox");
shouldBe('el.value', '"on"');
shouldBe('el.setAttribute("value", "foo"); el.value', '"foo"');
shouldBe('el.checked = true; el.value', '"foo"');
shouldBe('el.removeAttribute("value"); el.value', '"on"');
shouldBe('el.value = "foo"; el.getAttribute("value")', '"foo"');
</script>
</body>