Open Bug 1778795 Opened 2 years ago Updated 2 years ago

Conditional role mapping of role=form element based on accessible name

Categories

(Core :: Disability Access APIs, enhancement)

Firefox 101
enhancement

Tracking

()

People

(Reporter: spectranaut, Unassigned)

References

(Blocks 1 open bug)

Details

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

I only describe the bug for the OSX CORE-AAM mappings, but the others will have to be updated as well!

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?

Blocks: aria
Status: UNCONFIRMED → NEW
Type: defect → enhancement
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All
You need to log in before you can comment on or make changes to this bug.