Skip to content

[BUG]: a link within a label is not handled correctly #2540

@tombrunet

Description

@tombrunet

Project

Screen Reader Simulator browser extension

Browser

Chrome

Description

For this testcase:

<h2>Regular order</h2>
<div>
  <input type="checkbox" id="terms" name="terms" required aria-label="I have read and accept the terms and conditions."/>
  <label id="chkLabel" for="terms" >
    <span aria-hidden="true">I have read and accept the </span>
    <a href="#" target="_blank">
      terms and conditions</a><span aria-hidden="true">.</span>
  </label>
  </div>

The link is skipped in both item mode and reading mode because it's within the label:

[checkbox, not checked, required, "I have read and accept the terms and conditions."]

It shouldn't be skipped. It should be included in both the item and tab views.

Metadata

Metadata

Assignees

Labels

engine-simulatorIssues related to the SR simulator

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions