<?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>12868</bug_id>
          
          <creation_ts>2011-06-03 01:26:01 +0000</creation_ts>
          <short_desc>forms: Allow placeholder=&quot;&quot; for color and date/time types</short_desc>
          <delta_ts>2017-07-21 14:40:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=19072</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2016 Q1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rasamassen</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <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>robin</cc>
    
    <cc>rubys</cc>
    
    <cc>slave.loren</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49118</commentid>
    <comment_count>0</comment_count>
    <who name="">rasamassen</who>
    <bug_when>2011-06-03 01:26:01 +0000</bug_when>
    <thetext>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;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49183</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-06-04 01:11:00 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49745</commentid>
    <comment_count>2</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2011-06-16 22:17:33 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49747</commentid>
    <comment_count>3</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2011-06-16 22:20:27 +0000</bug_when>
    <thetext>Updated the bug title to match new scope.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49750</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-06-16 22:43:55 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52849</commentid>
    <comment_count>5</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:04:46 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54727</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-11 21:15:23 +0000</bug_when>
    <thetext>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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54922</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-14 06:22:27 +0000</bug_when>
    <thetext>*** Bug 13169 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82323</commentid>
    <comment_count>8</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-01-30 07:52:17 +0000</bug_when>
    <thetext>This bug was cloned to create HTML WG bug 19072.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94131</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-01 23:23:16 +0000</bug_when>
    <thetext>(Punting, pending Firefox implementing type=color.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112483</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-30 17:18:07 +0000</bug_when>
    <thetext>Update:

Firefox and Chrome both have basically the same implementation for type=color, for which placeholder=&quot;&quot; makes no sense. WebKit and IE (10) still don&apos;t seem to support it.

Chrome implements all the date-related ones except type=datetime, and for none of them would a placeholder work. iOS Safari does some stuff with some of the widgets, and the placeholders could be used given how they do it.

Firefox, IE, and WebKit still don&apos;t seem to support the date-related ones on desktop. Firefox Android doesn&apos;t either.

They all do type=number and show a placeholder, as the spec allows.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3220

Continuing to punt given the current situation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112486</commentid>
    <comment_count>11</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-30 17:29:01 +0000</bug_when>
    <thetext>Correction, kbrosnan points out that actually Firefox on Android does do something when you tap the text fields. So Firefox on Android supports them more or less like iOS Safari does: they&apos;re buttons (though they look like text fields) that pop up UI. They actually do support placeholder=&quot;&quot; on them currently.

It&apos;s hard to know what to do if half the implementations show the placeholders and half don&apos;t. On the one hand, if they show them, it makes sense to allow them to be specified! On the other, if an author is relying on them to be shown, a user might get lost if the information isn&apos;t shown, and then the author will blame the browsers, even though IMHO it&apos;s perfectly reasonable not to show them...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128762</commentid>
    <comment_count>12</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2017-07-21 14:40:41 +0000</bug_when>
    <thetext>If still desired, please file a new issue against https://github.com/whatwg/html/issues/new.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>