Bug 270060 - AX: "VoiceOver fails to announce aria-expanded state changes when aria-haspopup is present."
Summary: AX: "VoiceOver fails to announce aria-expanded state changes when aria-haspop...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All iOS 17
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-02-25 16:52 PST by Hyongsop Kim
Modified: 2024-02-25 16:52 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hyongsop Kim 2024-02-25 16:52:37 PST
The aria-expanded attribute informs screen readers whether an element is expanded or collapsed, while the aria-haspopup="menu" attribute indicates that the element has a popup submenu. 
However, when both aria-expanded and aria-haspopup attributes are included, VoiceOver does not announce the state of the aria-expanded attribute at all. This means that even if the aria-expanded attribute is updated via script to reflect the expanded or collapsed state, screen reader users are not informed about this status, leading to a usability issue. 
For a demonstration, I have created and shared a page at khsruru.com/menu.html. Please visit the page, turn on VoiceOver, focus on the fruit and vegetable buttons at the top, and try expanding or collapsing the menus. 
You can also examine the button code to see that, despite the correct implementation of the aria-expanded state updates via script, VoiceOver fails to announce these updates. I hope this issue can be resolved quickly.
Comment 1 Radar WebKit Bug Importer 2024-02-25 16:52:45 PST
<rdar://problem/123607952>