Repository navigation
Editorial: clarify that input constraint validation checks readonly regardless if it applies - #13311
Conversation
…egardless if it applies This confused me and has confused others before. Therefore, match the wording with specs such as WebDriver [1] which check whether the readonly attribute is set, regardless if it applies. Fixes whatwg#8133 [1]: https://w3c.github.io/webdriver/#dfn-read-only
| features still consider it. If a feature considers <code | ||
| data-x="attr-input-readonly">readonly</code> regardless if it <span | ||
| data-x="concept-input-apply">applies</span>, it checks if the attribute is set. | ||
| </div> |
There was a problem hiding this comment.
This kinda seems reasonable modulo one-space indentation, but also, perhaps this is just a bug we should fix? Seems rather odd that readonly does not apply except for constraint validation.
There was a problem hiding this comment.
Well, it doesn't apply to at least two cases and I think there are more. servo/servo#50098 is the first bit tackling issues. https://wpt.fyi/results/html/semantics/selectors/pseudo-classes/readwrite-readonly.html?product=servo is another one that I need to look into.
There was a problem hiding this comment.
It also seems that we decided in #8089 (2022) that we want this to behave this way and I guess I don't really want to revisit that. Trying to figure out a better fix.
There was a problem hiding this comment.
Okay, I pushed an alternative fix that I think is better. WDYT?
There was a problem hiding this comment.
Yes that works for me thanks!
…donly regardless if it applies
This confused me and has confused others before. Therefore, match the wording with specs such as WebDriver 1 which check whether the readonly attribute is set, regardless if it applies.
Fixes #8133
/input.html ( diff )