Bug 247203 - AX: VoiceOver in Safari macOS and iOS not speaking a state for aria-expanded when used on a link element
Summary: AX: VoiceOver in Safari macOS and iOS not speaking a state for aria-expanded ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 16
Hardware: All All
: P1 Blocker
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-28 10:12 PDT by Paul J. Adam
Modified: 2023-05-03 11:01 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.