diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute.html b/testing/web-platform/tests/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute.html new file mode 100644 index 0000000000..d3f4ce43cf --- /dev/null +++ b/testing/web-platform/tests/html/semantics/forms/the-select-element/select-willvalidate-readonly-attribute.html @@ -0,0 +1,24 @@ +<!DOCTYPE HTML> +<meta charset="utf-8"> +<title>Select element with "readonly" attribute shouldn't be barred from constraint validation</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> + +<select id="singleSelect" readonly> + <option>1 + <option>2 +</select> + +<select id="multiSelect" readonly multiple> + <option>a + <option>b + <option>c + <option>d +</select> + +<script> + test(() => { + assert_true(singleSelect.willValidate); + assert_true(multiSelect.willValidate); + }); +</script> |