blob: c31c7e269892eb1f54fb7c6e44a1a51afab2a3b4 [file] [log] [blame]
<body onload="test()">
<form action="/">
<input type=hidden name="action" value="">
</form>
<p>This tests that access to a form's element named "action" overrides the "action" property on a form element (from the HTML DOM).</p>
<p>If the test passes, the next paragraph will say "Test Passed".</p>
<p id="result"></p>
<script>
function test() {
if (window.layoutTestController)
layoutTestController.dumpAsText();
document.forms[0].action.value = "Passed";
document.getElementById("result").innerText = "Test " + (document.forms[0].action.value ? document.forms[0].action.value : "Failed");
}
</script>