[Bug 23608] New: Inconsistency between "placeholder" attribute and "placeholder label option"

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23608

            Bug ID: 23608
           Summary: Inconsistency between "placeholder" attribute and
                    "placeholder label option"
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec
          Assignee: dave.null@w3.org
          Reporter: taken.spc@gmail.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org

In HTML 5.1 nightly (as of 2013-10-23), there is a note for "placeholder"
attribute:
http://www.w3.org/html/wg/drafts/html/master/forms.html#the-placeholder-attribute

> While the hint given by the control'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 "placeholder label option" has same issue (it is only shown before the user
selects an option),

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


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


2. There is an advise to use "placeholder label option" instead label

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

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


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

> <p>
>  <label for="unittype">Unit type:</label>
>  <select name="unittype" required>
>   <option value=""> Select from the list </option>
>   <option value="1"> Miner </option>
>   <option value="2"> Puffer </option>
>   <option value="3"> Snipey </option>
>   <option value="4"> Max </option>
>   <option value="5"> Firebot </option>
>  </select>
> </p>


# "HTML to Platform Accessibility APIs Implementation Guide" may need
"placeholder label option" section for "6. Accessible Name and Description
calculation".

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 23 October 2013 14:08:59 UTC