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 method="get" action="?">
10 <input type="hidden" name="hidden" value="I am hidden" />
11 <button id="button" formmethod="post" type="submit" name="button" value="value" />
14 description("Test for the formmethod attribute in button tags.");
15 if (window.layoutTestController) {
16 layoutTestController.waitUntilDone();
19 var button = document.getElementById('button');
21 if (document.URL.substring(0, 4) == "file") {
22 if (document.URL.indexOf('?') == -1) {
25 if (document.URL.substring(document.URL.indexOf('?') + 1, document.URL.length) == "")
26 testPassed('The formmethod attribute was successfully used');
28 testFailed('The formmethod attribute was not used');
30 if (window.layoutTestController)
31 layoutTestController.notifyDone();
35 <script src="../../fast/js/resources/js-test-post.js"></script>