1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../../fast/js/resources/js-test-pre.js"></script>
7 <p id="description"></p>
8 <div id="console"></div>
9 <form action="javascript: failTest(this)" method="get">
10 <input id="button1" type="submit" formaction="javascript: passTest1(this)" />
11 <button id="button2" type="submit" formaction="javascript: passTest2(this)" />
14 description("Test for formaction attributes in input and button tags.");
15 var doneAction = false;
16 var doneAction2 = false;
21 testFailed('The formaction attribute in the input or button tag was ignored.');
23 function passTest1(ul)
26 testPassed('The formaction attribute in the input tag was used.');
28 function passTest2(ul)
31 testPassed('The formaction attribute in the button tag was used.');
35 var input = document.getElementById('button1');
38 testFailed('Both of the action and the formaction attributes were ignored.');
41 var button = document.getElementById('button2');
44 testFailed('Both of the action and the formaction attributes were ignored.');
46 <script src="../../fast/js/resources/js-test-post.js"></script>