1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <form method=
"get" id=
"sad_form">
9 <input name=
"victim" type=
"text" required
oninvalid=
"testPassed('Invalid control')"/>
10 <input name=
"victim" type=
"text" pattern=
"Lorem ipsum" value=
"Loremipsum" oninvalid=
"testPassed('Invalid control')"/>
11 <textarea name=
"victim" required
oninvalid=
"testPassed('Invalid control')"></textarea>
13 <div id=
"console"></div>
15 description("This test checks if the invalid event is correctly handled only by local handler.");
17 if (document
.getElementById("sad_form").checkValidity())
18 testFailed('checkValidity should have returned false');