<?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>221065</bug_id>
          
          <creation_ts>2021-01-27 15:22:10 -0800</creation_ts>
          <short_desc>AX: VoiceOver for iOS does not announce required state for an input with both aria-required=&quot;true&quot; and aria-roledescription</short_desc>
          <delta_ts>2021-01-29 16:37:05 -0800</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 14</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc>https://codepen.io/majornista/pen/gOLYgZd</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="Michael Jordan">mijordan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>cfleizach</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1723176</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Jordan">mijordan</who>
    <bug_when>2021-01-27 15:22:10 -0800</bug_when>
    <thetext>VoiceOver for iOS does not announce the required state for an input element with both aria-required=&quot;true&quot; and aria-roledescription.

For a numeric input stepper that can render its value using currency or other Intl.NumberFormat options, we use aria-roledescription to identify the text input as a &quot;Number field&quot;. 

With VoiceOver for iOS, the input role is announced using the aria-roledescription value, however the required state gets omitted. 
With VoiceOver for macOS, the input role is announced as &quot;edit text&quot;, and the required state is announced, which I suspect may be because aria-roledescription is being ignored entirely.

The expected behavior would be for states like aria-required to be announced for elements using aria-roledescription.

Here is a url to an example comparing the behavior of two inputs, one that has aria-roledescription and a second without: https://codepen.io/majornista/pen/gOLYgZd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1723177</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-01-27 15:22:29 -0800</bug_when>
    <thetext>&lt;rdar://problem/73682673&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1723903</commentid>
    <comment_count>2</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2021-01-29 15:22:17 -0800</bug_when>
    <thetext>Thanks for filing, I can reproduce this on iOS 13.6.1 and the latest 14.4 beta. Ccing relevant folks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1723945</commentid>
    <comment_count>3</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2021-01-29 16:29:19 -0800</bug_when>
    <thetext>The macOS bug reported (lack of role desc on text field) is a VoiceOver bug. I&apos;ve sent a clone of the issue to them: (&lt;rdar://problem/73777103&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1723948</commentid>
    <comment_count>4</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2021-01-29 16:37:05 -0800</bug_when>
    <thetext>The iOS issue is also in VoiceOver. I will use this radar to fix the issue there. since no webKit change is required, I will close out this bug. You&apos;ll be able to check on the iOS issue in the next update. Not sure about macOS right now</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>