Bug 241851 - AX: Voiceover does not add section to landmarks rotor menu if section aria-label added to markdown some time after page load
Summary: AX: Voiceover does not add section to landmarks rotor menu if section aria-la...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 15
Hardware: Mac (Intel) macOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-22 05:08 PDT by jartik
Modified: 2022-06-22 05:10 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 jartik 2022-06-22 05:08:00 PDT
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:
<p>Text content</p>
<section aria-label="First section label">
  <h2>First section heading</h2>
  <p>First section content</p>
</section>
<section id="second">
  <h2>Second section heading</h2>
  <p>Second section content</p>
</section>
<script>
  const section = document.getElementById('second');
  setTimeout(() => {
    section.setAttribute('aria-label', 'Second section label');
  }, 500);
</script>

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 & 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.
Comment 1 Radar WebKit Bug Importer 2022-06-22 05:08:07 PDT
<rdar://problem/95682343>