3 <title>required and basic valueMissing
</title>
4 <script language=
"JavaScript" type=
"text/javascript">
5 function log(message
) {
6 document
.getElementById("console").innerHTML
+= "<li>"+message
+"</li>";
10 if (window
.layoutTestController
)
11 layoutTestController
.dumpAsText();
13 v
= document
.getElementsByName("victim");
15 log((v
[0].validity
.valueMissing
&& v
[1].validity
.valueMissing
) ? "SUCCESS" : "FAILURE");
19 <body onload=
"test()">
20 <p>There are two form control elements below, both required and blank:
21 validity.valueMissing should be true in both cases.
</p>
22 <input name=
"victim" required
/>
23 <textarea name=
"victim" required
></textarea>
25 <ol id=
"console"></ol>