Skip to content

Constraint validation for readonly doesn't correspond implementations #11841

@dSalieri

Description

@dSalieri

What is the issue with the HTML Standard?

Constraint validation: If the readonly attribute is specified on an input element, the element is barred from constraint validation.

The thing is that this constraint validation does not correspond to reality. The specification specifies it for any input elements.

And here's what I discovered:

For chrome, elements: input, button, select, form-associated custom elements - when adding the readonly attribute, the willValidate getter changes to false.

For firefox, elements: input, form-associated custom elements - when adding the readonly attribute, the willValidate getter changes to false (the unspecified elements that were in chrome obviously didn't change the state of the willValidate getter).

That is, we see that there are inconsistencies between implementations, but not only do the implementations not correspond to each other, but none of the implementations corresponds to the specification.

It feels like the specification needs to be edited. But in which direction? Chrome or Firefox?

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs testsMoving the issue forward requires someone to write teststopic: forms

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions