Don't expose selectable state for gridcells which don't have aria-selected
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox157 | --- | fixed |
People
(Reporter: Jamie, Assigned: Jamie)
References
(Blocks 1 open bug)
Details
Attachments
(2 external files)
After bug 1894436, we (correctly) don't expose an implicit selected state for gridcells. However, we still expose the selectable state. This causes screen readers to report "not selected" even when a gridcell isn't selectable at all (because selectable + absence of selected = not selected). Spec for aria-selected undefined.
Originally reported in: https://github.com/nvaccess/nvda/issues/11986#issuecomment-5463640419
| Assignee | ||
Comment 1•3 months ago
|
||
Looking very briefly (unverified), this should hopefully be as simple as changing eARIASelectable for gridcell to eARIASelectableIfDefined.
| Assignee | ||
Comment 2•2 months ago
|
||
Previously, our exposure of the selectable state caused clients to treat these as "not selected".
However, this is different to "not selectable".
Updated•2 months ago
|
| Assignee | ||
Comment 3•2 months ago
•
|
||
| Assignee | ||
Comment 4•2 months ago
|
||
Selection changes fire selection events, not state change events.
Therefore, we handle aria-selected specially, rather than handling it in AttributeChangesState.
This meant that previously, a state change event wasn't fired when a change to aria-selected caused the selectable state to change.
To fix this, we now handle this case explicitly in LocalAccessible::DOMAttributeChanged.
Comment 6•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/15650dda7544
https://hg.mozilla.org/mozilla-central/rev/569bfb9912b0
Updated•2 months ago
|
Description
•