Conditional role mapping of role=form element based on accessible name (WPT wai-aria/role/form-roles.html form without label)
Categories
(Core :: Disability Access APIs, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox125 | --- | fixed |
People
(Reporter: spectranaut, Assigned: nlapre)
References
(Blocks 3 open bugs)
Details
Attachments
(1 file)
Steps to reproduce:
In OSX, open an html file that includes an unnamed form element in Firefox, such as:
<div role="form">Form contents.</div>
Use the accessibility inspect tools to see the AXSubrole of the role=form element.
Actual results:
The element has a landmark AXSubrole
Expected results:
The element should have no AXSubrole
See the relevant changes in CORE-AAM here: https://github.com/w3c/core-aam/pull/97
Reporter | ||
Comment 1•2 years ago
|
||
I only describe the bug for the OSX CORE-AAM mappings, but the others will have to be updated as well!
Comment 2•2 years ago
|
||
As a side note, Firefox already behaves like this for <form>
without a name precisely to avoid the landmark cluttering described in https://github.com/w3c/core-aam/issues/11#issue-325089950, but we currently treat role="form"
differently. I'm curious as to why this change is necessary for role="form", given that the problematic examples all covered issues with <form>
, not role="form". Is it just consistency?
Updated•2 years ago
|
Comment 3•2 years ago
•
|
||
See also the discussion in https://github.com/w3c/core-aam/issues/100
Updated•1 year ago
|
Updated•8 months ago
|
Assignee | ||
Comment 4•7 months ago
|
||
The ARIA spec requires that, for certain landmark roles with no author-specified
names, user agents must treat such elements as if no role had been provided.
This revision accomplishes that task by carving out an exception in
ARIATransformRole and ComputeARIARole for roles::FORM, similar to the existing
carveout for roles::REGION. This revision also implements a NameIsEmpty function
which is helpful for checking name emptiness (since we do this in a few places)
without leaving a "name" variable on the stack. Finally, this revision updates a
expected WPT failure (by removing it).
Updated•7 months ago
|
Comment 6•7 months ago
|
||
bugherder |
Description
•