Bug 283499
| Summary: | Role=document not treated as web content by VoiceOver | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | M_J_Robbins |
| Component: | Accessibility | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | andresg_22, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 18 | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | macOS 15 | ||
M_J_Robbins
When using `role="application"` in the browser it is expected that using `role="document"` inside that will mean the content is treated as web content.
> If the web application encompassed by the application role contains parts that should be treated like normal web content, a role of document or article should be used to contain such content.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/application_role
I believe this isn't happening. When looking at the below code sample with an element that contains only ` `, inside a region, inside a document, inside an application. Then it breaks VoiceOver navigation and will exit the region.
```
<div role="application">
<div role="document">
<div aria-label="Testing region in application" role="region" >
<h1>This text is read out</h1>
<p> </p>
<p>This text is ignored</p>
</div>
</div>
</div>
```
This issue was found when looking at an email inside the Outlook webmail client. I've also tested this using role="article" instead of region and it has the same issue.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/140351781>