<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>283499</bug_id>
          
          <creation_ts>2024-11-21 09:40:11 -0800</creation_ts>
          <short_desc>Role=document not treated as web content by VoiceOver</short_desc>
          <delta_ts>2024-11-21 09:40:28 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Accessibility</component>
          <version>Safari 18</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 15</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>M_J_Robbins</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2076732</commentid>
    <comment_count>0</comment_count>
    <who name="">M_J_Robbins</who>
    <bug_when>2024-11-21 09:40:11 -0800</bug_when>
    <thetext>When using `role=&quot;application&quot;` in the browser it is expected that using `role=&quot;document&quot;` inside that will mean the content is treated as web content. 

&gt; 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&apos;t happening. When looking at the below code sample with an element that contains only `&amp;nbsp;`, inside a region, inside a document, inside an application. Then it breaks VoiceOver navigation and will exit the region.



```
&lt;div role=&quot;application&quot;&gt;
  &lt;div role=&quot;document&quot;&gt;
    &lt;div aria-label=&quot;Testing region in application&quot; role=&quot;region&quot; &gt;
      &lt;h1&gt;This text is read out&lt;/h1&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;p&gt;This text is ignored&lt;/p&gt;
    &lt;/div&gt;          
  &lt;/div&gt;
&lt;/div&gt;
```

This issue was found when looking at an email inside the Outlook webmail client. I&apos;ve also tested this using role=&quot;article&quot; instead of region and it has the same issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2076733</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-11-21 09:40:28 -0800</bug_when>
    <thetext>&lt;rdar://problem/140351781&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>