| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <p id="description"></p> | 7 <p id="description"></p> |
| 8 <form method="get" id="sad_form"> | 8 <form method="get" id="sad_form"> |
| 9 <input name="victim" type="text" required/> | 9 <input name="victim" type="text" required/> |
| 10 <input name="victim" type="text" pattern="Lorem ipsum" value="Loremipsum"/> | 10 <input name="victim" type="text" pattern="Lorem ipsum" value="Loremipsum"/> |
| 11 <textarea name="victim" required></textarea> | 11 <textarea name="victim" required></textarea> |
| 12 </form> | 12 </form> |
| 13 <div id="console"></div> | 13 <div id="console"></div> |
| 14 <script> | 14 <script> |
| 15 description("This test checks if the invalid event is correctly handled by windo
w.oninvalid handler."); | 15 description("This test checks if the invalid event is correctly handled by windo
w.oninvalid handler."); |
| 16 | 16 |
| 17 window.oninvalid = testPassed('Handled'); | 17 window.oninvalid = testPassed('Handled'); |
| 18 | 18 |
| 19 if (document.getElementById("sad_form").checkValidity()) | 19 if (document.getElementById("sad_form").checkValidity()) |
| 20 testFailed('checkValidity should have returned false'); | 20 testFailed('checkValidity should have returned false'); |
| 21 </script> | 21 </script> |
| 22 <script src="../js/resources/js-test-post.js"></script> | |
| 23 </body> | 22 </body> |
| 24 </html> | 23 </html> |
| OLD | NEW |