Bug 246607

Summary: AX: Legend not announced when following a link to main region using Ctrl-Option-Space
Product: WebKit Reporter: Martin Jones <martin.jones>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: andresg_22, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Mac (Apple Silicon)   
OS: macOS 12   
Attachments:
Description Flags
Minimal HTML used for the video demo
none
Video of VoiceOver demonstration
none
Video showing h1 being announced when it is not in a fieldset none

Description Martin Jones 2022-10-17 01:39:52 PDT
Created attachment 463021 [details]
Minimal HTML used for the video demo

Overview

Load the HTML page attached and use the VoiceOver Ctrl-Option-Space shortcut on the "Skip to main content" link to jump to the main content section.

Minimal test case

```HTML
<body>
  <a href="#main-content">Skip to main content</a>
  <main id="main-content">
    <fieldset>
      <legend>
        <h1>Heading Question?</h1>
      </legend>

      <input type="radio" name="response" id="response-0" value="yes">
      <label for="response-0">Yes</label>

      <input type="radio" name="response" id="response-1" value="no">
      <label for="response-1">No</label>
    </fieldset>
  </main>
</body>
```

A minimal test case is also attached

If the h1 element is not contained within a fieldset, then the text is read out as expected.

Expected result

VoiceOver will read out the legend h1 text "Heading Question"

Actual Result

Nothing is read out

Safari Version 16.0 (17614.1.25.9.10, 17614
Comment 1 Radar WebKit Bug Importer 2022-10-17 01:40:04 PDT
<rdar://problem/101237840>
Comment 2 Martin Jones 2022-10-17 01:40:30 PDT
Created attachment 463022 [details]
Video of VoiceOver demonstration
Comment 3 Martin Jones 2022-10-17 01:41:31 PDT
Created attachment 463023 [details]
Video showing h1 being announced when it is not in a fieldset