Bug 256302

Summary: AX: aria-describedby not announced with role=radiogroup
Product: WebKit Reporter: diegocardoso <diegopc86>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: andresg_22, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
role=radiogroup with aria-describedby example none

Description diegocardoso 2023-05-04 06:29:11 PDT
Created attachment 466205 [details]
role=radiogroup with aria-describedby example

Consider an element with role=radiogroup and that defines aria-label and aria-describedby, and has a list of input[type=radio].

In Safari, once the focus lands on the first input, then VO gives this announcement:

> <label of the input>, radio button, 1 of X, <aria-label value of the group>, radio group

The value of `aria-describeby` is ignored by VO.

In comparison, this is how NVDA and JAWS announce the same elements in Edge:

- NVDA
> <aria-label value of the group> grouping <aria-describedby of the group>
> <label of the input> radio button not checked 1 of X

- JAWS
> <aria-label value of the group> group - <aria-describedby of the group>
> <label of the input> radio button - not checked - 
> 1 of X

It can be verified in the codepen example slightly modified taken from the WAI ARIA example section of Radio Group Pattern page:
https://codepen.io/diegocardoso/pen/OJBxEvX

Also added a smaller example where the issue can be reproduced.
Comment 1 Radar WebKit Bug Importer 2023-05-04 06:29:25 PDT
<rdar://problem/108889995>