ARIA role=radio group calculation should respect ancestor role=radiogroup
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
People
(Reporter: spectranaut, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Steps to reproduce
For the following markup:
<div role="radiogroup">
<table>
<caption>
Duck Names
</caption>
<tbody>
<tr>
<td><button role="radio">Huey</button></td>
<td>yellow</td>
</tr>
<tr>
<td><button role="radio">Dewey</button></td>
<td>blue</td>
</tr>
<tr>
<td><button role="radio">Louie</button></td>
<td>green</td>
</tr>
<tbody>
</table>
</div>
Actual results
Inspecting in the accessibility panel, you can see that the attributes setsize and posinset are 1 for all three radios in the table.
Expected results
Radiogroups do not constrain their children, which means that if there are radios contained in the descendant of a radiogroup, they should all be considered part of the same group.
See discussion in:
https://github.com/w3c/aria/issues/2910
However, radiogroups cannot overwrite native html input grouping -- so if the radio is a native html input with a name, the radiogroup does not contain that radio. That is a new requirement being added here: https://github.com/w3c/html-aria/pull/604
| Reporter | ||
Comment 1•2 months ago
|
||
For what it's worth, I've only tested this on linux, and it doesn't seem that Orca announces the set size for a group of radios when navigating through them, unless I'm missing something.
Also I see that in the dev tools, there is a "relations" "member of" which accurate shows the three radios in the table.
So I'm not sure if this incorrect posinset and setsize actually results in a bug for a users.
Comment 2•2 months ago
|
||
So I'm not sure if this incorrect posinset and setsize actually results in a bug for a users.
It does. NVDA at least definitely reports posinset and setsize. Surprisingly, we've never had this particular bug reported against a real world use case, though.
Description
•