1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
12 <input type=text id=e required
>
15 <input id=
"inLegend" required
>
21 description('Test for child elements of a datalist element.');
23 var e
= document
.getElementById('e');
24 shouldBeFalse('e.willValidate');
25 var w
= document
.getElementById('w');
26 w
.parentNode
.removeChild(w
);
27 shouldBeTrue('e.willValidate');
28 shouldBe('w.querySelector(":invalid")', 'e');
29 e
.parentNode
.removeChild(e
);
30 shouldBeTrue('e.willValidate');
31 document
.body
.appendChild(e
);
32 shouldBeTrue('e.willValidate');
33 shouldBe('document.querySelector(":invalid")', 'e');
35 shouldBeFalse('document.getElementById("inLegend").willValidate');