Bug 191743 - AX: Voiceover reads checkbox labels twice
Summary: AX: Voiceover reads checkbox labels twice
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 12
Hardware: Mac macOS 10.14
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2018-11-16 04:32 PST by Oliver Byford
Modified: 2021-09-28 02:17 PDT (History)
7 users (show)

See Also:

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">


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

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
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)
Comment 3 Oliver Byford 2020-12-22 07:37:33 PST
I can no longer reproduce this in Safari 14.0.2 (15610., 15610) on macOS 10.15.7 (19H114) – I think this has been fixed at some point.
Comment 4 Klaus 2021-09-27 01:39:12 PDT
this has been reintroduced in latest osx/safari for all form elements

Comment 5 Simon Fraser (smfr) 2021-09-27 09:41:11 PDT
Please file a new bug on that and add it to "See Also"
Comment 6 Klaus 2021-09-28 02:17:16 PDT
See also: https://bugs.webkit.org/show_bug.cgi?id=230824