<?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>19072</bug_id>
          
          <creation_ts>2012-09-25 22:25:21 +0000</creation_ts>
          <short_desc>Allow placeholder for color and date+ types</short_desc>
          <delta_ts>2013-01-30 07:52:17 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>REMIND</resolution>
          
          <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=12868</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>cmhjones</cc>
    
    <cc>contributor</cc>
    
    <cc>eoconnor</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>laura.lee.carlson</cc>
    
    <cc>lwatson</cc>
    
    <cc>mike</cc>
    
    <cc>mjs</cc>
    
    <cc>Paul.Cotton</cc>
    
    <cc>public-html-a11y</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rubys</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>74526</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-09-25 22:25:21 +0000</bug_when>
    <thetext>This was was cloned from bug 12868 as part of operation REMIND convergence.
Originally filed: 2011-06-03 01:26:00 +0000
Original reporter: rasamassen@gmail.com

================================================================================
 #0   rasamassen@gmail.com                            2011-06-03 01:26:01 +0000 
--------------------------------------------------------------------------------
Per the definition (http://dev.w3.org/html5/spec/common-input-element-attributes.html#attr-input-placeholder): The placeholder attribute represents a short hint (a word or short phrase) intended to aid the user with data entry. A hint could be a sample value or a brief description of the expected format.

Dates, numbers, and colors could use placeholders as well to display a brief description of the expected format.

Reasoning: Because users aren&apos;t as smart as computers; for the date type, a placeholder of &quot;##-##-####&quot; or whatever format is expected by the date input would make a lot of sense.

&lt;fieldset&gt;
 &lt;legend&gt;Mail Account&lt;/legend&gt;
 &lt;p&gt;&lt;label&gt;Color: &lt;input type=&quot;color&quot; name=&quot;hex-value&quot; placeholder=&quot;Example: #000000&quot;&gt;&lt;/label&gt;&lt;/p&gt;
 &lt;p&gt;&lt;label&gt;Time: &lt;input type=&quot;time&quot; name=&quot;hours-and-seconds&quot; placeholder=&quot;##:##:##&quot;&gt;&lt;/label&gt;&lt;/p&gt;
 &lt;p&gt;&lt;label&gt;Time: &lt;input type=&quot;time&quot; name=&quot;hours-and-seconds&quot; placeholder=&quot;Military format&quot;&gt;&lt;/label&gt;&lt;/p&gt;
 &lt;p&gt;&lt;label&gt;A large number: &lt;input type=&quot;number&quot; name=&quot;big&quot; min=&quot;1000000&quot; placeholder=&quot;94520318359&quot;&gt;&lt;/label&gt;&lt;/p&gt;
&lt;/fieldset&gt;
================================================================================
 #1   Tab Atkins Jr.                                  2011-06-04 01:11:00 +0000 
--------------------------------------------------------------------------------
Color and date are specifically intended to *not* expose a standard text-input box.  type=color should expose a dropper or something, and type=date should expose a calendar picker.

type=number is a bit different, but the UA should still make it clear by default that it expects a number.  You shouldn&apos;t have to do anything special by yourself.
================================================================================
 #2   Edward O&apos;Connor                                 2011-06-16 22:17:33 +0000 
--------------------------------------------------------------------------------
I agree with Tab that &lt;input type=number&gt; is a sufficiently different case from the others, and have separated it into its own bug: http://www.w3.org/Bugs/Public/show_bug.cgi?id=12974
================================================================================
 #3   Edward O&apos;Connor                                 2011-06-16 22:20:27 +0000 
--------------------------------------------------------------------------------
Updated the bug title to match new scope.
================================================================================
 #4   Ian &apos;Hixie&apos; Hickson                             2011-06-16 22:43:55 +0000 
--------------------------------------------------------------------------------
I don&apos;t really understand what a placeholder would look like for type=color or the date-related types. Will have to examine how browsers implement these types to see if it makes sense.
================================================================================
 #6   Ian &apos;Hixie&apos; Hickson                             2011-08-11 21:15:23 +0000 
--------------------------------------------------------------------------------
Marking REMIND for now. Gotta wait for Firefox to implement them and to see if WebKit&apos;s UI changes to be more like Opera&apos;s or not. Will reopen in ~6 months (feel free to do it for me if I am late in doing so — I do check the REMINDs every few months).
================================================================================
 #7   Ian &apos;Hixie&apos; Hickson                             2011-08-14 06:22:27 +0000 
--------------------------------------------------------------------------------
*** Bug 13169 has been marked as a duplicate of this bug. ***
================================================================================</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>