<?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>11048</bug_id>
          
          <creation_ts>2010-10-14 14:34:52 +0000</creation_ts>
          <short_desc>Attribute placeholder not allowed on element input at this point. - is Incorrect</short_desc>
          <delta_ts>2015-08-23 07:07:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.martinsolution.com/examples/podcast/index.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bruce Martin">bmartin</reporter>
          <assigned_to name="Michael[tm] Smith">mike</assigned_to>
          <cc>bugzilla</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41363</commentid>
    <comment_count>0</comment_count>
    <who name="Bruce Martin">bmartin</who>
    <bug_when>2010-10-14 14:34:52 +0000</bug_when>
    <thetext>In the Element-specific attributes placeholder is listed therefore should not throw an error when validating.

Element-specific attributes for element input:
Global attributes
accept
alt
autocomplete
autofocus
checked
disabled
form
formaction
formenctype
formmethod
formnovalidate
formtarget
height
list
max
maxlength
min
multiple
name
pattern
placeholder
readonly
required
size
src
step
type
value
width</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42440</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-11-11 18:13:07 +0000</bug_when>
    <thetext>please provide a test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49500</commentid>
    <comment_count>2</comment_count>
    <who name="Lotte">bugzilla</who>
    <bug_when>2011-06-13 14:22:04 +0000</bug_when>
    <thetext>I get the same error.
You can reproduce it with the following link:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.opinirate.com%2Fkoffie&amp;charset=%28detect+automatically%29&amp;doctype=Inline&amp;group=0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49677</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-06-16 10:25:05 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I get the same error.
&gt; You can reproduce it with the following link:
&gt; http://validator.w3.org/check?uri=http%3A%2F%2Fwww.opinirate.com%2Fkoffie&amp;charset=%28detect+automatically%29&amp;doctype=Inline&amp;group=0

You have &lt;input type=hidden placeholder&gt; and &lt;input type=file placeholder&gt; in that document.

The HTML5 spec doesn&apos;t permit placeholder ond &lt;input type=hidden&gt; or &lt;input type=file&gt;

Take a look here:

  http://dev.w3.org/html5/spec/the-input-element.html#input-type-attr-summary

Check the row for &quot;placeholder&quot;.

The placeholder attribute is only allowed on the input element if the type is one of the following:

text
search
url
tel
email
password</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49678</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Martin">bmartin</who>
    <bug_when>2011-06-16 10:51:33 +0000</bug_when>
    <thetext>Here is my example. I am not using a file or a hidden field and still it fails validation due to the placeholder attribute. 

http://www.martinsolution.com/examples/podcast/index.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49679</commentid>
    <comment_count>5</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-06-16 10:57:12 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Here is my example. I am not using a file or a hidden field and still it fails
&gt; validation due to the placeholder attribute. 
&gt; 
&gt; http://www.martinsolution.com/examples/podcast/index.html

That document has &lt;input type=time&gt;

The placeholder attribute is only allowed on the input element if the type is one of the following:

text
search
url
tel
email
password

See the &quot;placeholder&quot; row in the table here:

http://dev.w3.org/html5/spec/the-input-element.html#input-type-attr-summary</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49681</commentid>
    <comment_count>6</comment_count>
    <who name="Lotte">bugzilla</who>
    <bug_when>2011-06-16 11:35:51 +0000</bug_when>
    <thetext>Thanks for your reply.

It might be an idea to refine the error displayed.
I must say it is a bit confusing to first get told &quot;Attribute placeholder not allowed on element input at this point.&quot; 
and then getting a list &quot;Attributes for element input:&quot;
...
placeholder
...

Thats why it never occurred to me that the input type was actually the problem here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49682</commentid>
    <comment_count>7</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-06-16 12:50:07 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; It might be an idea to refine the error displayed.
&gt; I must say it is a bit confusing to first get told &quot;Attribute placeholder not
&gt; allowed on element input at this point.&quot; 
&gt; and then getting a list &quot;Attributes for element input:&quot;
&gt; ...
&gt; placeholder
&gt; ...

Yeah, agreed. The current message that gets emitted is confusing.

We have had a bug report open for some time that suggests a way to improve it:

  http://bugzilla.validator.nu/show_bug.cgi?id=339#c0

But it has not been implemented in the validator yet. I will try to see if I might be able to get it implemented in the next couple of weeks.

The basic issue is that the &quot;Attributes for element input:&quot; list included in the error message is a chunk of text that&apos;s pulled in programatically from a copy of the HTML5 spec. So what we need to do is have the validator copy over only parts of that list (based on the value of the type attribute of the input element it&apos;s reporting the error for) instead of the whole list as-is.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>