Bug 247203

Summary: AX: VoiceOver in Safari macOS and iOS not speaking a state for aria-expanded when used on a link element
Product: WebKit Reporter: Paul J. Adam <paul>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Blocker CC: andresg_22, kodiane, webkit-bug-importer
Priority: P1 Keywords: InRadar
Version: Safari 16   
Hardware: All   
OS: All   

Description Paul J. Adam 2022-10-28 10:12:44 PDT
VoiceOver used in Safari on macOS or iOS will not speak the state of aria-expanded when it's used on a link element.


Steps to Reproduce:
1. Turn on VoiceOver on iOS and/or macOS.
2. Visit https://pauljadam.com/demos/aria-expanded.html in Safari or Mobile Safari.
3. Set VoiceOver focus to the link element using aria-expanded.

Expected Result:

VoiceOver says "link Dynamic Section, expanded"

Actual Result:

VoiceOver says "link Dynamic Section"
Comment 1 Radar WebKit Bug Importer 2022-10-28 10:13:00 PDT
<rdar://problem/101683056>
Comment 2 Diane Ko 2023-05-03 11:01:47 PDT
Also confirmed this is an issue with Safari specifically, as you can open the node inspector in Safari and notice that the expanded state is not in the accessibility node information for the link. It's properly exposed as expanded for a link in Chrome and Firefox.