- add third_party src.
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / forms / input-named-action-overrides-action-attribute.html
1 <body onload="test()">
2 <form action="/">
3    <input type=hidden name="action" value="">
4 </form>
5 <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>
6 <p>If the test passes, the next paragraph will say "Test Passed".</p>
7 <p id="result"></p>
8 <script>
9     function test() {
10         if (window.testRunner)
11             testRunner.dumpAsText();
12         document.forms[0].action.value = "Passed";
13         document.getElementById("result").innerText = "Test " + (document.forms[0].action.value ? document.forms[0].action.value : "Failed");
14     }
15 </script>