<?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>79095</bug_id>
          
          <creation_ts>2012-02-21 03:35:52 -0800</creation_ts>
          <short_desc>HTML5 input type=&quot;number&quot; role mapping incorrect</short_desc>
          <delta_ts>2012-02-21 10:30:58 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Steve Faulkner">faulkner.steve</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cfleizach</cc>
    
    <cc>faulkner.steve</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>560790</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Faulkner">faulkner.steve</who>
    <bug_when>2012-02-21 03:35:52 -0800</bug_when>
    <thetext>The HTML5 input type=&quot;number&quot; currently is mapped to AXTextField. As it is implemented in webkit as an Incrementor control it is suggested that the accessibility mapping should be:

AXRole:  &quot;AXIncrementor&quot;
 AXSubrole:  &quot;AXTextField&quot;
 AXRoleDescription:  &quot;stepper text field&quot;

The above is suggested as the primary method to interact with the control for keyboard users is via the up/down arrow keys (as it is a stepper control), but it also allows free text entry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>560968</commentid>
    <comment_count>1</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2012-02-21 09:46:41 -0800</bug_when>
    <thetext>
The main role is a text field because you can type into it. 

An AXIncrementor is only used for the tiny little buttons that do the stepping. 

The roles are a very defined set because VoiceOver would not be able to recognize or handle the elements correctly without customization to handle those roles. So changing the roles doesn&apos;t work.

Potentially we could change the role description, but I&apos;d rather let VoiceOver decide how it wants to output this element, which it can do by observing there is a stepper inside the text field</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>560995</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Faulkner">faulkner.steve</who>
    <bug_when>2012-02-21 10:22:49 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; The main role is a text field because you can type into it. 
&gt; 
&gt; An AXIncrementor is only used for the tiny little buttons that do the stepping. 
&gt; 
&gt; The roles are a very defined set because VoiceOver would not be able to recognize or handle the elements correctly without customization to handle those roles. So changing the roles doesn&apos;t work.
&gt; 
&gt; Potentially we could change the role description, but I&apos;d rather let VoiceOver decide how it wants to output this element, which it can do by observing there is a stepper inside the text field

thanks for the explanation, I did notice that the incrementor buttons are mapped with the incrementor role and associated actions, but found that VoiceOver didn&apos;t pick this up.

It would also appear that the while you can type into the field it has a defined set of values that are selectable by using the stepper interaction.

As the ARIA spinbutton role is often added to an input type=text (example http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_Spinner.html)Is this going to be a problem for VoiceOver as you indicate above?

On a related bug https://bugs.webkit.org/show_bug.cgi?id=77298 the ARIA spinbutton role is currently mapped to &apos;progress indicator&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>561002</commentid>
    <comment_count>3</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2012-02-21 10:30:58 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; The main role is a text field because you can type into it. 
&gt; &gt; 
&gt; &gt; An AXIncrementor is only used for the tiny little buttons that do the stepping. 
&gt; &gt; 
&gt; &gt; The roles are a very defined set because VoiceOver would not be able to recognize or handle the elements correctly without customization to handle those roles. So changing the roles doesn&apos;t work.
&gt; &gt; 
&gt; &gt; Potentially we could change the role description, but I&apos;d rather let VoiceOver decide how it wants to output this element, which it can do by observing there is a stepper inside the text field
&gt; 
&gt; thanks for the explanation, I did notice that the incrementor buttons are mapped with the incrementor role and associated actions, but found that VoiceOver didn&apos;t pick this up.
&gt; 

VoiceOver needs to be updated to account for this new paradigm, which does not exist in OSX in any other form.

&gt; It would also appear that the while you can type into the field it has a defined set of values that are selectable by using the stepper interaction.
&gt; 
&gt; As the ARIA spinbutton role is often added to an input type=text (example http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_Spinner.html)Is this going to be a problem for VoiceOver as you indicate above?
&gt; 

If that&apos;s done, then the element won&apos;t appear as a textfield, but since it responds to keyboard commands and other things, it shouldn&apos;t in the end matter as much. I think it&apos;s something we&apos;ll need to test in VoiceOver as well.

&gt; On a related bug https://bugs.webkit.org/show_bug.cgi?id=77298 the ARIA spinbutton role is currently mapped to &apos;progress indicator&apos;

Yes aware of that issue as well. need to fix</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>