HTML `readonly` attribute should apply to all <input> types
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: morgan, Assigned: morgan)
References
(Blocks 3 open bugs)
Details
Attachments
(1 external file)
Currently, an <input> that gets role=combobox will not expose the associated readonly HTML attribute. it will, however, expose aria-readonly. Based on the HTML spec it looks like we should be exposing both attributes the same. This bug tracks this behaviour change.
Here's a test case Anna provided on the linked bug which can be used to repro this issue:
data:text/html,<label>Combobox: <input role=combobox readonly value=URL></label><label>Text input:<input readonly value=URL></label><label>Combobox with ARIA: <input role=combobox readonly value=URL aria-readonly=true></label>
| Assignee | ||
Comment 1•7 months ago
|
||
Right now, we preemtively remove readonly
here
on accs with an aria role to encourage ATs to make their own decisions about virtual buffer
creation. I think this makes sense for the document, but on <input>
fields with aria roles, I think it makes sense to re-add this state
indicator. I've done so in this patch.
Alternatively, we could make the ApplyARIAState check more specific. Let
me know what you think is best :)
Updated•7 months ago
|
Comment 2•7 months ago
|
||
HTML AAM is also quite clear about this:
- readonly maps to aria-readonly="true"
- "If the element includes both the readonly attribute and the aria-readonly attribute with a valid value, User Agents MUST expose only the readonly attribute value."
Comment 4•6 months ago
|
||
| bugherder | ||
Updated•6 months ago
|
Description
•