Closed Bug 1858051 Opened 7 months ago Closed 3 months ago

Fix ComputedARIARole for <input type="search"> (WPT html-aam/roles.html)

Categories

(Core :: Disability Access APIs, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: Jamie, Assigned: nlapre)

References

(Blocks 3 open bugs)

Details

Attachments

(1 file)

For <input type="search">, ComputedARIARole currently returns "textbox". It should return "searchbox". Fixing this will address the failing "el-input-search" test case in this WPT test.

There are two ways we could fix this:

  1. Add a special case for IsSearchbox() in ComputedARIARole(). In that case, we would probably remove the existing role="searchbox" special case.
  2. Add a dedicated Gecko role for searchbox, which would also allow us to remove the hard-coded role="searchbox" case from ComputedARIARole().
See Also: → 1829046

The markup <input type="search"> will report a ComputedARIARole of "textbox,"
which isn't correct - it should return "searchbox." To address this issue, this
revision implements a change to ComputedARIARole for searchboxes, checking
IsSearchbox() and returning the searchbox atom if so. This revision also enables
the previously expected-failure relevant web platform test, since we now pass it.

Assignee: nobody → nlapre
Status: NEW → ASSIGNED
Pushed by nlapre@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0c2e19189f1b
Fix ComputedARIARole for <input type="search">, r=Jamie
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: