<?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>23608</bug_id>
          
          <creation_ts>2013-10-23 14:08:54 +0000</creation_ts>
          <short_desc>Inconsistency between &quot;placeholder&quot; attribute and &quot;placeholder label option&quot;</short_desc>
          <delta_ts>2016-04-22 21:23:14 +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>HTML5 spec</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></keywords>
          <priority>P2</priority>
          <bug_severity>editorial</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>arronei</cc>
    
    <cc>faulkner.steve</cc>
    
    <cc>mark.sadecki+w3c</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>roselli</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95195</commentid>
    <comment_count>0</comment_count>
    <who name="Takeshi Kurosawa">taken.spc</who>
    <bug_when>2013-10-23 14:08:54 +0000</bug_when>
    <thetext>In HTML 5.1 nightly (as of 2013-10-23), there is a note for &quot;placeholder&quot; attribute:
http://www.w3.org/html/wg/drafts/html/master/forms.html#the-placeholder-attribute

&gt; While the hint given by the control&apos;s label is shown at all times, the short hint given in the placeholder attribute is only shown before the user enters a value.

Yet &quot;placeholder label option&quot; has same issue (it is only shown before the user selects an option),

1. there are no notes for &quot;placeholder label option&quot; and
2. there is an advise to use &quot;placeholder label option&quot; instead label.


1. There are no notes for &quot;placeholder label option&quot;
See http://www.w3.org/html/wg/drafts/html/master/forms.html#placeholder-label-option


2. There is an advise to use &quot;placeholder label option&quot; instead label

In the example near the &quot;size&quot; property (IDL attributes) definition,
http://www.w3.org/html/wg/drafts/html/master/forms.html#dom-select-size

&gt; When there is no default option, a placeholder can be used instead:
&gt;
&gt; &lt;select name=&quot;unittype&quot; required&gt;
&gt;  &lt;option value=&quot;&quot;&gt; Select unit type &lt;/option&gt;
&gt;  &lt;option value=&quot;1&quot;&gt; Miner &lt;/option&gt;
&gt;  &lt;option value=&quot;2&quot;&gt; Puffer &lt;/option&gt;
&gt;  &lt;option value=&quot;3&quot;&gt; Snipey &lt;/option&gt;
&gt;  &lt;option value=&quot;4&quot;&gt; Max &lt;/option&gt;
&gt;  &lt;option value=&quot;5&quot;&gt; Firebot &lt;/option&gt;
&gt; &lt;/select&gt;


I think we should add notes for &quot;placeholder label option&quot; and tweak the example.
I&apos;m not sure what is the best practice for such situation, a possible modification is:

&gt; &lt;p&gt;
&gt;  &lt;label for=&quot;unittype&quot;&gt;Unit type:&lt;/label&gt;
&gt;  &lt;select name=&quot;unittype&quot; required&gt;
&gt;   &lt;option value=&quot;&quot;&gt; Select from the list &lt;/option&gt;
&gt;   &lt;option value=&quot;1&quot;&gt; Miner &lt;/option&gt;
&gt;   &lt;option value=&quot;2&quot;&gt; Puffer &lt;/option&gt;
&gt;   &lt;option value=&quot;3&quot;&gt; Snipey &lt;/option&gt;
&gt;   &lt;option value=&quot;4&quot;&gt; Max &lt;/option&gt;
&gt;   &lt;option value=&quot;5&quot;&gt; Firebot &lt;/option&gt;
&gt;  &lt;/select&gt;
&gt; &lt;/p&gt;


# &quot;HTML to Platform Accessibility APIs Implementation Guide&quot; may need &quot;placeholder label option&quot; section for &quot;6. Accessible Name and Description calculation&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95554</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Roselli">roselli</who>
    <bug_when>2013-10-30 17:31:36 +0000</bug_when>
    <thetext>The &quot;placeholder&quot; is a defined attribute that applies to the &lt;input&gt; element:
http://www.w3.org/html/wg/drafts/html/master/forms.html#the-placeholder-attribute

The &lt;select&gt; element has no corresponding attribute or feature, though rules for a de facto place-keeping item are defined as a &quot;placeholder label option,&quot; which is only referenced again from the &lt;option&gt; definition:
http://www.w3.org/html/wg/drafts/html/master/forms.html#placeholder-label-option

I think those rules mostly describe behavior in browsers today (and yesterday) instead of laying out requirements. Users may still select it, though validation routines may reject it.

To address your points:

1. I don&apos;t think there need to be any notes. The term is described strictly in the context of the &lt;select&gt; and &lt;option&gt; elements, and links back to its inline definition at each use. Moving it to a note can confuse the issue by possibly causing readers to assume its scope has expanded.

2. I agree, the use of &quot;placeholder&quot; here is confusing, given its use as an attribute elsewhere. Perhaps just this change?

&quot;When there is no default option, a [placeholder label option] can be used instead:&quot;

And that links back to the definition within 4.10.9? Or perhaps something a bit more robust:

&quot;When there is no default option, a [value that provides instructions or a hint (placeholder label option)] can be used instead:&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126058</commentid>
    <comment_count>2</comment_count>
    <who name="Arron Eicholz">arronei</who>
    <bug_when>2016-04-22 21:23:14 +0000</bug_when>
    <thetext>HTML5.1 Bugzilla Bug Triage: Fixed added a small change to the wording, &quot;...value that provides instruction or a hint (placeholder option)...&quot;

If this resolution is not satisfactory, please copy the relevant bug details/proposal into a new issue at the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new where it will be re-triaged. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>