<?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>279256</bug_id>
          
          <creation_ts>2024-09-06 03:00:45 -0700</creation_ts>
          <short_desc>REGRESSION: Children of HTML label element are read twice by VoiceOver</short_desc>
          <delta_ts>2024-09-07 11:50:43 -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 17</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 14</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=191743</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=230824</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="Matyas">forianszm</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>klh</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2058156</commentid>
    <comment_count>0</comment_count>
    <who name="Matyas">forianszm</who>
    <bug_when>2024-09-06 03:00:45 -0700</bug_when>
    <thetext>Label is permitted to have phrasing content as children: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label#technical_summary , but Safari reads its children erroneously twice.

VoiceOver reads every child twice, an example: 

&lt;label for=&quot;testid2&quot;&gt;
  &lt;span&gt;this is read twice in Safari and FF&lt;/span&gt;
  &lt;input type=&quot;text&quot; id=&quot;testid2&quot; placeholder=&quot;test2&quot; /&gt;
&lt;/label&gt;

same in CodeSandbox: https://codesandbox.io/p/sandbox/727pzq

OSX 14.6.1, Safari 17.6

Ps: This looks like a reintroduction of this fixed bug: https://bugs.webkit.org/show_bug.cgi?id=191743</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2058385</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-09-07 11:47:26 -0700</bug_when>
    <thetext>&lt;rdar://problem/135479312&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2058387</commentid>
    <comment_count>2</comment_count>
    <who name="Klaus">klh</who>
    <bug_when>2024-09-07 11:50:43 -0700</bug_when>
    <thetext>see https://bugs.webkit.org/show_bug.cgi?id=230824</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>