Bug 283499

Summary: Role=document not treated as web content by VoiceOver
Product: WebKit Reporter: M_J_Robbins
Component: AccessibilityAssignee: 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
Reported 2024-11-21 09:40:11 PST
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 `&nbsp;`, 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>&nbsp;</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
Radar WebKit Bug Importer
Comment 1 2024-11-21 09:40:28 PST
Note You need to log in before you can comment on or make changes to this bug.