<?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>254081</bug_id>
          
          <creation_ts>2023-03-17 11:10:39 -0700</creation_ts>
          <short_desc>AX: iOS Voiceover not announcing text linked to input using aria-describedby</short_desc>
          <delta_ts>2024-10-25 12:03:23 -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 16</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 16</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Graham Armfield">graham.armfield</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>marc.solomon</cc>
    
    <cc>maria</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1942140</commentid>
    <comment_count>0</comment_count>
    <who name="Graham Armfield">graham.armfield</who>
    <bug_when>2023-03-17 11:10:39 -0700</bug_when>
    <thetext>A common way of programmatically linking hint text or error messages to input fields is by using aria-describedby attribute on the input element.

What is currently happening:
When a Voiceover user is swiping right to move through the input fields this linked text is not being read out when focus is on the input field. The text is read out if user swipes beyond the input but they won&apos;t necessarily know it&apos;s there, or that it&apos;s linked to the input field.

What should happen:
The linked hint text or error message should be read out when Voiceover moves focus onto an input field. Suggest that it is voiced after the label and the type of input field, and &quot;invalid data&quot; if aria-invalid=&quot;true&quot; is present.

Example code:

&lt;label for=&quot;firstname&quot;&gt;First name&lt;/label&gt;
&lt;input type=&quot;text&quot; id=&quot;firstname&quot; name=&quot;firstname&quot; aria-required=&quot;true&quot; aria-invalid=&quot;true&quot; aria-describedby=&quot;firstname-error&quot;&gt;
&lt;span id=&quot;firstname-error&quot;&gt;You must supply your first name.&lt;/span&gt;

The above code gives a satisfactory experience in desktop/laptop screen readers like NVDA and JAWS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1942141</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-03-17 11:10:49 -0700</bug_when>
    <thetext>&lt;rdar://problem/106866541&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054768</commentid>
    <comment_count>2</comment_count>
    <who name="">marc.solomon</who>
    <bug_when>2024-08-22 12:47:03 -0700</bug_when>
    <thetext>For what it&apos;s worth, I cannot reproduce this issue using the provided code sample with Safari on iOS 17.5.1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>