Bug 230180 - AX: Voice Control won't allow interaction with anchors that have role="menuitem" attribute
Summary: AX: Voice Control won't allow interaction with anchors that have role="menuit...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 14
Hardware: Mac (Intel) macOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-10 16:33 PDT by Jen Downs
Modified: 2021-09-10 16:34 PDT (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 Jen Downs 2021-09-10 16:33:49 PDT
Voice Control won't interact with anchors that have the role="menuitem" attribute, including when saying commands to click on the link directly or saying the "Show Numbers" command.

Specifically with the "Show Numbers" command, anchors with role="menuitem" won't receive a number.

Steps to reproduce:

- Go to the Editor Menubar Example on w3.org: https://www.w3.org/TR/wai-aria-practices/examples/menubar/menubar-2/menubar-2.html
- Turn on Voice Control in macOS Accessibility settings
- Say "Show Numbers" and note that the links in that menubar example do not receive numbers.
- Say "Click Fonts" and note that the "Fonts" link is not clicked.

You can also reproduce this with a short code example, if you wanted to save an HTML snippet, open it in Safari, and then experiment with it in Developer Tools:

```
<a href="https://bugs.webkit.org/" role="menuitem">example link</a>
```

If you remove the role attribute in the snippet above, the anchor will be recognized by Voice Control as a link that can be clicked. And if you add the role="menuitem" attribute back, you will notice that Voice Control won't recognize the link again.
Comment 1 Radar WebKit Bug Importer 2021-09-10 16:34:00 PDT
<rdar://problem/82995112>