Bug 236880 - AX: aria-expanded is blocking VO click events on comboboxes
Summary: AX: aria-expanded is blocking VO click events on comboboxes
Status: RESOLVED DUPLICATE of bug 236881
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 15
Hardware: Mac (Apple Silicon) macOS 12
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-19 04:19 PST by Aron Janecki
Modified: 2022-02-19 04:25 PST (History)
2 users (show)

See Also:


Attachments
Crude test case of the aria-expanded issue (2.71 KB, text/html)
2022-02-19 04:19 PST, Aron Janecki
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Janecki 2022-02-19 04:19:51 PST
Created attachment 452635 [details]
Crude test case of the aria-expanded issue

Hello

I've noticed a bug specific to Safari. When using VoiceOver, I'm able to send a click event (VO+Space) to an element with the role="combobox" attribute only when it does not have the aria-expanded attribute. Once the attribute is set, regardless of its value, the click action does not work. I'm able to send the click event for comboboxes with aria-expanded in Chrome and Firefox.

See the live example of a select only combobox in the ARIA authoring practices- https://www.w3.org/TR/wai-aria-practices-1.2/examples/combobox/combobox-select-only.html
If you remove the aria-expanded="false" from the element in the web inspector and try sending the click- it will work- the listbox popup will expand.

Some other notes:
- it seems that Safari is treating an element with role="combobox" and aria-expanded="false" as if it was expanded as it begins the announcement with the word "confirm",
- aria-expanded is a required state as per the ARIA spec (https://www.w3.org/TR/wai-aria-1.1/#combobox) meaning that it must be present at all times
- the issue will be highly problematic once ARIA 1.2 turns into a recommendation (currently in candidate recommendation meaning it is close to become the spec) as 1.2 officially acknowledges comboboxes as select-only and text field comboboxes whereas previous versions were treating this element as if it always had to have a text box.

Alos, see the attached aria-ExpandedComboboxIssue.html file that shows the issue but displaying the system alert dialog on click.
Comment 1 Radar WebKit Bug Importer 2022-02-19 04:20:01 PST
<rdar://problem/89185237>
Comment 2 Aron Janecki 2022-02-19 04:25:12 PST

*** This bug has been marked as a duplicate of bug 236881 ***