<?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>28354</bug_id>
          
          <creation_ts>2015-03-27 13:09:11 +0000</creation_ts>
          <short_desc>Placeholder on inputs with type=&quot;email&quot; wrongly being flagged as invalid.</short_desc>
          <delta_ts>2015-08-23 07:07:41 +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>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>28362</dup_id>
          
          <bug_file_loc></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="Phil Ellett">phil</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>alexisowl</cc>
    
    <cc>mike</cc>
    
    <cc>omar.crea</cc>
    
    <cc>ratliff33</cc>
    
    <cc>wendt.withers</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>118981</commentid>
    <comment_count>0</comment_count>
    <who name="Phil Ellett">phil</who>
    <bug_when>2015-03-27 13:09:11 +0000</bug_when>
    <thetext>The following error messages :-

&quot;Attribute placeholder is only allowed when the input type is e-mail, number, password, search, tel, text, or url.&quot;

and 

&quot;Attribute required is only allowed when the input type is checkbox, date, datetime, datetime-local, e-mail, file, month, number, password, radio, search, tel, text, time, url, or week.&quot;

Are incorrect for the following markup.

&lt;input id=&quot;email&quot; name=&quot;email&quot; class=&quot;form-control&quot; placeholder=&quot;Enter Email&quot; type=&quot;email&quot; required&gt;

The correct type is &quot;email&quot; and NOT &quot;e-mail&quot; as confirmed by MDN documentation.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input

Please advise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118986</commentid>
    <comment_count>1</comment_count>
    <who name="">ratliff33</who>
    <bug_when>2015-03-27 17:00:44 +0000</bug_when>
    <thetext>Yes, I also noticed this issue today...  placeholder is allowed on type=&quot;email&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118993</commentid>
    <comment_count>2</comment_count>
    <who name="">omar.crea</who>
    <bug_when>2015-03-27 19:21:30 +0000</bug_when>
    <thetext>Same for the &quot;maxlength&quot; attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119003</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Smolianinov">alexisowl</who>
    <bug_when>2015-03-28 08:54:21 +0000</bug_when>
    <thetext>Same for &quot;required&quot; and &quot;pattern&quot; attributes:

Attribute required is only allowed when the input type is checkbox, date, datetime, datetime-local, e-mail, file, month, number, password, radio, search, tel, text, time, url, or week.
    &lt;input type=&quot;email&quot; required pattern=&quot;@&quot;&gt;

Attribute pattern is only allowed when the input type is e-mail, password, search, tel, text, or url.
    &lt;input type=&quot;email&quot; required pattern=&quot;@&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119036</commentid>
    <comment_count>4</comment_count>
    <who name="">wendt.withers</who>
    <bug_when>2015-03-29 23:56:01 +0000</bug_when>
    <thetext>Same as bug 28362

*** This bug has been marked as a duplicate of bug 28362 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119044</commentid>
    <comment_count>5</comment_count>
    <who name="Phil Ellett">phil</who>
    <bug_when>2015-03-30 02:39:01 +0000</bug_when>
    <thetext>Why is the bug I posted marked as being a duplicate of a bug posted more than 24 hours later!!!!.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119054</commentid>
    <comment_count>6</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-03-30 08:53:45 +0000</bug_when>
    <thetext>(In reply to omar.crea from comment #2)
&gt; Same for the &quot;maxlength&quot; attribute.

(In reply to Alexey Smolianinov from comment #3)
&gt; Same for &quot;required&quot; and &quot;pattern&quot; attributes:
&gt; 
&gt; Attribute required is only allowed when the input type is checkbox, date,
&gt; datetime, datetime-local, e-mail, file, month, number, password, radio,
&gt; search, tel, text, time, url, or week.
&gt;     &lt;input type=&quot;email&quot; required pattern=&quot;@&quot;&gt;
&gt; 
&gt; Attribute pattern is only allowed when the input type is e-mail, password,
&gt; search, tel, text, or url.
&gt;     &lt;input type=&quot;email&quot; required pattern=&quot;@&quot;&gt;

All caused by the same bug, all now fixed.

(In reply to Phil Ellett from comment #5)
&gt; Why is the bug I posted marked as being a duplicate of a bug posted more
&gt; than 24 hours later!!!!.

Dunno but thanks for taking time to report it originally.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>