Closed Bug 1335734 Opened 7 years ago Closed 7 years ago

ARIA role "directory" needs to expose the READONLY state

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: MarcoZ, Assigned: MarcoZ)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Right now, it doesn't, causing NVDA to skip its contents in the virtual buffer and treat it as a widget. This page https://taz.de/Politik/Deutschland/!p4616/ exposes that problem.

According to spec[1], role="directory" inherits from role="list" and thus should also expose the READONLY state like "list" does.

[1] https://www.w3.org/TR/wai-aria/roles#directory
Add states::READONLY into directory role mapping in ARIAMap.cpp, add a proper test into /states/test_aria.html
Keywords: good-first-bug
Whiteboard: [mentor=:surkov]
Note that the ARIA mapping guide says ROLE_SYSTEM_LIST without read-only:
https://www.w3.org/TR/wai-aria-implementation/#mapping_role_table
However, I'd argue this is a bug in the guide given that it's a subclass of list, not listbox.
I am actually taking this one, since I already have a patch. I use that news site daily now, and the bug annoys the hell out of me. ;)

(In reply to James Teh [:Jamie] from comment #2)
> Note that the ARIA mapping guide says ROLE_SYSTEM_LIST without read-only:
> https://www.w3.org/TR/wai-aria-implementation/#mapping_role_table
> However, I'd argue this is a bug in the guide given that it's a subclass of
> list, not listbox.

I agree. Jamie, are you going to file a bug against the spec?
Assignee: nobody → mzehe
Status: NEW → ASSIGNED
Keywords: good-first-bug
Whiteboard: [mentor=:surkov]
Comment on attachment 8832770 [details]
Bug 1335734 - Make sure ARIA role 'directory' exposes the READONLY state so it doesn't get treated as a widget,

https://reviewboard.mozilla.org/r/109012/#review110300
Attachment #8832770 - Flags: review?(surkov.alexander) → review+
Pushed by mzehe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/13a04dc6650c
Make sure ARIA role 'directory' exposes the READONLY state so it doesn't get treated as a widget, r=surkov
https://hg.mozilla.org/mozilla-central/rev/13a04dc6650c
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: