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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29201</bug_id>
          
          <creation_ts>2015-10-14 00:21:29 +0000</creation_ts>
          <short_desc>Accessible Name Calculation of label</short_desc>
          <delta_ts>2018-05-03 20:33:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>ARIA</product>
          <component>HTML AAM</component>
          <version>Future</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>1</everconfirmed>
          <reporter name="Takeshi Kurosawa">taken.spc</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>jason</cc>
    
    <cc>surkov.alexander</cc>
    
    <cc>w3cbugzilla</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>123705</commentid>
    <comment_count>0</comment_count>
    <who name="Takeshi Kurosawa">taken.spc</who>
    <bug_when>2015-10-14 00:21:29 +0000</bug_when>
    <thetext>5.1.1 input type=&quot;text&quot;, input type=&quot;password&quot;, input type=&quot;search&quot;, input type=&quot;tel&quot;, input type=&quot;email&quot;, input type=&quot;url&quot; and textarea Element Accessible Name Calculation
http://w3c.github.io/aria/html-aam/html-aam.html#input-type-text-input-type-password-input-type-search-input-type-tel-input-type-url-and-textarea-element

and

5.5.1 Other Form Elements Accessible Name Calculation
http://w3c.github.io/aria/html-aam/html-aam.html#other-form-elements

mention

&gt; Otherwise use the associated label element


However how to calculate accessible name from label elements is ambiguous.

Currently different User Agents have different implementations especially when multiple label elements are associated with a form control. Consider a following example:

&lt;tr&gt;
&lt;th&gt;&lt;label for=&quot;timeout&quot;&gt;Extend time-out to&lt;/label&gt;&lt;/th&gt;
&lt;td&gt;&lt;input id=&quot;timeout&quot;&gt;&lt;label for=&quot;timeout&quot;&gt;minutes&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;

Current User Agents&apos; implementations are:

Firefox: &quot;Extend time-out tominutes&quot;
Chrome: &quot;Extend time-out to&quot;
Edge: &quot;minutes&quot;


My proposal is defining &quot;use the associated label element&quot; as follows:

- Set the accumulated text to the empty string.
- For each label element in |element.labels|:
    - Append label element subtree except its labeled control, with a space, to the accumulated text.
- Return the accumulated text.

Accessible Name of the above example will be &quot;Extend time-out to minutes&quot;.

Note: Definition of |element.labels|
http://www.w3.org/TR/html51/semantics.html#dom-lfe-labels</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129167</commentid>
    <comment_count>1</comment_count>
    <who name="James Nurthen">w3cbugzilla</who>
    <bug_when>2018-05-03 20:33:04 +0000</bug_when>
    <thetext>This should be resolved. Please open a new github issue if still a problem</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>