<?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>241851</bug_id>
          
          <creation_ts>2022-06-22 05:08:00 -0700</creation_ts>
          <short_desc>AX: Voiceover does not add section to landmarks rotor menu if section aria-label added to markdown some time after page load</short_desc>
          <delta_ts>2022-10-26 10:18:19 -0700</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 15</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 12</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=246987</see_also>
          <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>jartik</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>1877273</commentid>
    <comment_count>0</comment_count>
    <who name="">jartik</who>
    <bug_when>2022-06-22 05:08:00 -0700</bug_when>
    <thetext>Overview:
This situation can occur e.g. if ARIA label text is downloaded from server for chosen site/web app localization and added to markdown some time after page load.

Steps to Reproduce:
1). Please use the following code snippet:
&lt;p&gt;Text content&lt;/p&gt;
&lt;section aria-label=&quot;First section label&quot;&gt;
  &lt;h2&gt;First section heading&lt;/h2&gt;
  &lt;p&gt;First section content&lt;/p&gt;
&lt;/section&gt;
&lt;section id=&quot;second&quot;&gt;
  &lt;h2&gt;Second section heading&lt;/h2&gt;
  &lt;p&gt;Second section content&lt;/p&gt;
&lt;/section&gt;
&lt;script&gt;
  const section = document.getElementById(&apos;second&apos;);
  setTimeout(() =&gt; {
    section.setAttribute(&apos;aria-label&apos;, &apos;Second section label&apos;);
  }, 500);
&lt;/script&gt;

2). Open rotor menu by using VO + U key combination, navigate to Landmarks section

Actual Results: Region landmark is present only for first section

Expected Results: Region landmarks are present for both sections

Build Date &amp; Hardware: Safari 15.5 (17613.2.7.1.8) on MacOS Monterey 12.4

Additional Information:
Although second section landmark is not added to rotor landmarks menu, it is properly read while traversing the page as region with label.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877274</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-22 05:08:07 -0700</bug_when>
    <thetext>&lt;rdar://problem/95682343&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>