blob: c4a05a4401d365b034139363abd4adf16f9c30ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<!DOCTYPE HTML>
<meta charset="utf-8">
<title>Button element with "readonly" attribute shouldn't be barred from constraint validation</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<button id="implicitSubmitButton" readonly>1</button>
<button id="explicitSubmitButton" readonly type="submit">2</button>
<script>
test(() => {
assert_true(implicitSubmitButton.willValidate);
assert_true(explicitSubmitButton.willValidate);
});
</script>
|