<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>191743</bug_id>
          
          <creation_ts>2018-11-16 04:32:47 -0800</creation_ts>
          <short_desc>AX: Voiceover reads checkbox labels twice</short_desc>
          <delta_ts>2024-09-07 11:50:06 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Accessibility</component>
          <version>Safari 12</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=279256</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oliver Byford">oliver.byford</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs.webkit.org</cc>
    
    <cc>cfleizach</cc>
    
    <cc>klh</cc>
    
    <cc>n_wang</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thatguy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1479341</commentid>
    <comment_count>0</comment_count>
      <attachid>355041</attachid>
    <who name="Oliver Byford">oliver.byford</who>
    <bug_when>2018-11-16 04:32:47 -0800</bug_when>
    <thetext>Created attachment 355041
Reduced test case

Given the following markup:

  &lt;input id=&quot;checkbox-bar&quot; name=&quot;foo&quot; type=&quot;checkbox&quot; value=&quot;bar&quot;&gt;
  &lt;label for=&quot;checkbox-bar&quot;&gt;
    Foo
  &lt;/label&gt;

  &lt;br&gt;

  &lt;input id=&quot;checkbox-baz&quot; name=&quot;foo&quot; type=&quot;checkbox&quot; value=&quot;baz&quot;&gt;
  &lt;label for=&quot;checkbox-baz&quot;&gt;
    Bar
  &lt;/label&gt;

Focus either checkbox.

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

Expected behaviour:

Voiceover should announce the label once, e.g.

&quot;Foo, unticked, checkbox&quot;

Actual behaviour:

Voiceover announces the label twice, e.g.

&quot;Foo, Foo, unticked, checkbox&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1479342</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-11-16 04:33:33 -0800</bug_when>
    <thetext>&lt;rdar://problem/46124550&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1480052</commentid>
    <comment_count>2</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2018-11-17 23:03:21 -0800</bug_when>
    <thetext>for some reason the &lt;label&gt; is being converted to a AXStaticText and it&apos;s reporting it has a child of its own (the actual static text item)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1716207</commentid>
    <comment_count>3</comment_count>
    <who name="Oliver Byford">oliver.byford</who>
    <bug_when>2020-12-22 07:37:33 -0800</bug_when>
    <thetext>I can no longer reproduce this in Safari 14.0.2 (15610.3.7.1.10, 15610) on macOS 10.15.7 (19H114) – I think this has been fixed at some point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1797404</commentid>
    <comment_count>4</comment_count>
    <who name="Klaus">klh</who>
    <bug_when>2021-09-27 01:39:12 -0700</bug_when>
    <thetext>this has been reintroduced in latest osx/safari for all form elements

https://codepen.io/lewisjwright/full/bGbpoGw</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1797527</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-09-27 09:41:11 -0700</bug_when>
    <thetext>Please file a new bug on that and add it to &quot;See Also&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1797793</commentid>
    <comment_count>6</comment_count>
    <who name="Klaus">klh</who>
    <bug_when>2021-09-28 02:17:16 -0700</bug_when>
    <thetext>See also: https://bugs.webkit.org/show_bug.cgi?id=230824</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2058386</commentid>
    <comment_count>7</comment_count>
    <who name="Klaus">klh</who>
    <bug_when>2024-09-07 11:50:06 -0700</bug_when>
    <thetext>see https://bugs.webkit.org/show_bug.cgi?id=230824

still there</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>355041</attachid>
            <date>2018-11-16 04:32:47 -0800</date>
            <delta_ts>2018-11-16 04:32:47 -0800</delta_ts>
            <desc>Reduced test case</desc>
            <filename>checkbox-duplicated-labels.html</filename>
            <type>text/html</type>
            <size>379</size>
            <attacher name="Oliver Byford">oliver.byford</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgPG1ldGEgY2hhcnNldD0i
dXRmLTgiPgogIDx0aXRsZT5DaGVja2JveCBsYWJlbHMgcmVhZCB0d2ljZTwvdGl0bGU+CjwvaGVh
ZD4KPGJvZHk+CiAgPGlucHV0IGlkPSJjaGVja2JveC1iYXIiIG5hbWU9ImZvbyIgdHlwZT0iY2hl
Y2tib3giIHZhbHVlPSJiYXIiPgogIDxsYWJlbCBmb3I9ImNoZWNrYm94LWJhciI+CiAgICBGb28K
ICA8L2xhYmVsPgoKICA8YnI+CgogIDxpbnB1dCBpZD0iY2hlY2tib3gtYmF6IiBuYW1lPSJmb28i
IHR5cGU9ImNoZWNrYm94IiB2YWx1ZT0iYmF6Ij4KICA8bGFiZWwgZm9yPSJjaGVja2JveC1iYXoi
PgogICAgQmFyCiAgPC9sYWJlbD4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>