| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 | 5 |
| 6 <p>Test formmethod attribute</p> | 6 <p>Test formmethod attribute</p> |
| 7 | 7 |
| 8 <form id=f1 method="post"> | 8 <form id=f1 method="post"> |
| 9 <input type="submit" value="Submit" id="ip1"> | 9 <input type="submit" value="Submit" id="ip1"> |
| 10 <input type="submit" formmethod="" value="Submit" id="ip2"> | 10 <input type="submit" formmethod="" value="Submit" id="ip2"> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 shouldBeEqualToString("ip4.formMethod", "get"); | 39 shouldBeEqualToString("ip4.formMethod", "get"); |
| 40 shouldBeEqualToString("ip4.getAttribute('formmethod')", "get"); | 40 shouldBeEqualToString("ip4.getAttribute('formmethod')", "get"); |
| 41 debug(''); | 41 debug(''); |
| 42 | 42 |
| 43 debug('Invalid value'); | 43 debug('Invalid value'); |
| 44 var ip5 = document.getElementById('ip5'); | 44 var ip5 = document.getElementById('ip5'); |
| 45 shouldBeEqualToString("ip5.formMethod", "get"); | 45 shouldBeEqualToString("ip5.formMethod", "get"); |
| 46 shouldBeEqualToString("ip5.getAttribute('formmethod')", "foo"); | 46 shouldBeEqualToString("ip5.getAttribute('formmethod')", "foo"); |
| 47 debug(''); | 47 debug(''); |
| 48 </script> | 48 </script> |
| 49 <script src="../js/resources/js-test-post.js"></script> | |
| 50 </body> | 49 </body> |
| 51 </html> | 50 </html> |
| 52 | 51 |
| OLD | NEW |