Skip to content

Commit b583860

Browse files
nt1mmoz-wptsync-bot
authored andcommitted
Bug 1783760 [wpt PR 35389] - readonly attribute should still affect constraint validation on 'unsupported' types, a=testonly
Automatic update from web-platform-tests readonly attribute should still affect constraint validation on 'unsupported' types (#35389) See whatwg/html#8133 and whatwg/html#8089 -- wpt-commits: b7eb2920ba4cea3af51fdc4e11eddacd26f9a3ac wpt-pr: 35389
1 parent adafff6 commit b583860

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

testing/web-platform/tests/html/semantics/forms/constraints/form-validation-willValidate.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
},
4242
//If an element is disabled, it is barred from constraint validation.
4343
//The willValidate attribute must be true if an element is mutable
44-
//If the readonly attribute is specified on an INPUT element, the element is barred from constraint validation
45-
//(with the assumption that the readonly attribute applies).
44+
//If the readonly attribute is specified on an INPUT element, the element is barred from constraint validation.
4645
{
4746
tag: "input",
4847
types: ["text", "search", "tel", "url", "email", "password", "datetime-local", "date", "month", "week", "time"],
@@ -53,14 +52,14 @@
5352
{conditions: {disabled: false, readOnly: false}, expected: false, name: "[target] The willValidate attribute must be false if it has a datalist ancestor", ancestor: "datalist"},
5453
]
5554
},
56-
//In the following cases, the readonly attribute does not apply.
55+
//In the following cases, the readonly attribute does not apply, however we should still bar the element from constraint validation.
5756
{
5857
tag: "input",
5958
types: ["color", "file", "submit"],
6059
testData: [
6160
{conditions: {disabled: true}, expected: false, name: "[target] Must be barred from the constraint validation if it is disabled"},
6261
{conditions: {disabled: false, readOnly: false}, expected: true, name: "[target] The willValidate attribute must be true if an element is mutable"},
63-
{conditions: {readOnly: true}, expected: true, name: "[target] Must be not barred from the constraint validation even if it is readonly"},
62+
{conditions: {readOnly: true}, expected: false, name: "[target] Must be barred from the constraint validation if it is readonly"},
6463
{conditions: {disabled: false, readOnly: false}, expected: false, name: "[target] The willValidate attribute must be false if it has a datalist ancestor", ancestor: "datalist"},
6564
]
6665
},

0 commit comments

Comments
 (0)