Index: LayoutTests/fast/forms/datalist/datalist-child-validation.html |
=================================================================== |
--- LayoutTests/fast/forms/datalist/datalist-child-validation.html (revision 119622) |
+++ LayoutTests/fast/forms/datalist/datalist-child-validation.html (working copy) |
@@ -11,8 +11,12 @@ |
<div id=w> |
<input type=text id=e required> |
</div> |
+ <legend> |
+ <input id="inLegend" required> |
+ </legend> |
</datalist> |
+ |
<script> |
description('Test for child elements of a datalist element.'); |
@@ -28,6 +32,8 @@ |
shouldBeTrue('e.willValidate'); |
shouldBe('document.querySelector(":invalid")', 'e'); |
+shouldBeFalse('document.getElementById("inLegend").willValidate'); |
+ |
</script> |
<script src="../../../fast/js/resources/js-test-post.js"></script> |
</body> |