Bug 191743 - AX: Voiceover reads checkbox labels twice
Summary: AX: Voiceover reads checkbox labels twice
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 12
Hardware: Macintosh macOS 10.14
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-16 04:32 PST by Oliver Byford
Modified: 2018-11-17 23:03 PST (History)
4 users (show)

See Also:


Attachments
Reduced test case (379 bytes, text/html)
2018-11-16 04:32 PST, Oliver Byford
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Byford 2018-11-16 04:32:47 PST
Created attachment 355041 [details]
Reduced test case

Given the following markup:

  <input id="checkbox-bar" name="foo" type="checkbox" value="bar">
  <label for="checkbox-bar">
    Foo
  </label>

  <br>

  <input id="checkbox-baz" name="foo" type="checkbox" value="baz">
  <label for="checkbox-baz">
    Bar
  </label>

Focus either checkbox.

This behaviour is also present in Safari Technology Preview release 70.

Expected behaviour:

Voiceover should announce the label once, e.g.

"Foo, unticked, checkbox"

Actual behaviour:

Voiceover announces the label twice, e.g.

"Foo, Foo, unticked, checkbox"
Comment 1 Radar WebKit Bug Importer 2018-11-16 04:33:33 PST
<rdar://problem/46124550>
Comment 2 chris fleizach 2018-11-17 23:03:21 PST
for some reason the <label> is being converted to a AXStaticText and it's reporting it has a child of its own (the actual static text item)