blob: 91b6514ca3bdabddb516200414cd2f8ce9c3700c [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", "radio");
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>