<?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>16774</bug_id>
          
          <creation_ts>2012-04-18 13:05:49 +0000</creation_ts>
          <short_desc>placeholder name calculation</short_desc>
          <delta_ts>2012-05-15 16:13:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML a11y APIs (editor: Steve Faulkner, Cynthia Shelly)</component>
          <version>unspecified</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>a11y</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="steve faulkner">faulkner.steve</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>faulkner.steve</cc>
    
    <cc>hans.hillen</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-bugzilla</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>surkov.alexander</cc>
          
          <qa_contact name="HTML a11y API spec bugbot">sideshowbarker+html-a11y-api</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66794</commentid>
    <comment_count>0</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2012-04-18 13:05:49 +0000</bug_when>
    <thetext>Ref: HTML to Platform Accessibility APIs Implementation Guide http://dvcs.w3.org/hg/html-api-map/raw-file/tip/Overview.html
For accessible name / description calculation under 5.1 Input type=&quot;text&quot; or textarea element the suggested order is aria-labelledby, aria-label, placeholder, then the host language&apos;s placeholder, label element and title attributes
Comment-1:
The INPUT type=text / textarea are host language constructs. So I find it odd that aria-attributes should take precedence unless there is a role attribute that is present that changes the role declared by the host language. 
Comment-2:
Having stated the above order of precedence, it goes on to say that when only placeholder and label are present, the label takes precedence and should be considered to calculate accessible name.
Then why does placeholder precede label element in the above order beginning with aria attributes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66836</commentid>
    <comment_count>1</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2012-04-19 04:34:54 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Ref: HTML to Platform Accessibility APIs Implementation Guide
&gt; http://dvcs.w3.org/hg/html-api-map/raw-file/tip/Overview.html
&gt; For accessible name / description calculation under 5.1 Input type=&quot;text&quot; or
&gt; textarea element the suggested order is aria-labelledby, aria-label,
&gt; placeholder, then the host language&apos;s placeholder, label element and title
&gt; attributes
&gt; Comment-1:
&gt; The INPUT type=text / textarea are host language constructs. So I find it odd
&gt; that aria-attributes should take precedence unless there is a role attribute
&gt; that is present that changes the role declared by the host language. 
&gt; Comment-2:
&gt; Having stated the above order of precedence, it goes on to say that when only
&gt; placeholder and label are present, the label takes precedence and should be
&gt; considered to calculate accessible name.
&gt; Then why does placeholder precede label element in the above order beginning
&gt; with aria attributes?

I have rewritten the Input type=&quot;text&quot; accessible name calculation steps.
see http://dvcs.w3.org/hg/html-api-map/raw-file/tip/Overview.html#calc-iput

In regards to the aria-labelledby and aria-label taking precedence, this is how it is implemented (for user agents that support the attributes) in user agents for all elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66933</commentid>
    <comment_count>2</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2012-04-23 04:35:22 +0000</bug_when>
    <thetext>Steve, it would be nice if you provided old and new wording. It&apos;s easier to track what was changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66963</commentid>
    <comment_count>3</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2012-04-24 11:09:16 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Steve, it would be nice if you provided old and new wording. It&apos;s easier to
&gt; track what was changed.

hi alex, 

chnagefile here: http://dvcs.w3.org/hg/html-api-map/rev/d4a424424472#l1.84 to http://dvcs.w3.org/hg/html-api-map/rev/d4a424424472#l1.117</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66968</commentid>
    <comment_count>4</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2012-04-24 13:32:04 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Steve, it would be nice if you provided old and new wording. It&apos;s easier to
&gt; &gt; track what was changed.
&gt; 
&gt; hi alex, 
&gt; 
&gt; chnagefile here: http://dvcs.w3.org/hg/html-api-map/rev/d4a424424472#l1.84 to
&gt; http://dvcs.w3.org/hg/html-api-map/rev/d4a424424472#l1.117

ok, thank you. html diff is not very friendly :) but it&apos;s ok.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>