<?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>23573</bug_id>
          
          <creation_ts>2013-10-21 03:20:14 +0000</creation_ts>
          <short_desc>Drop maxlength=&quot;&quot; and minlength=&quot;&quot; on &lt;input type=email&gt;</short_desc>
          <delta_ts>2014-01-27 19:08:34 +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>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state-(type=email)</bug_file_loc>
          <status_whiteboard>blocked waiting for data from Kent, per comment 2</status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Needs Research</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kent Tamura">tkent</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>jonas</cc>
    
    <cc>mathias</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94981</commentid>
    <comment_count>0</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2013-10-21 03:20:14 +0000</bug_when>
    <thetext>Proposal: Remove maxlength/minlength attribute support for type=email

* No good usecases.

* Needs extra implementation cost because of IDN.

* UAs can&apos;t show the detailed validation message for tooLong/tooShort
Chrome and Firefox show the following message for type=text:

&gt; Please shorten this text to $MAX_CHARACTERS characters or less (you are currently using $CURRENT_LENGTH characters).

Showing numbers like $MAX_CHARACTERS and $CURRENT_LENGTH for type=email is useless  because of IDN, and UAs need to show an abstract message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95049</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-21 21:38:34 +0000</bug_when>
    <thetext>Yeah, that&apos;s a good point.

The original use case was servers that have a server-side limitation. What do you propose they do instead? Maybe I can include suitable advice in the spec for authors facing such limitations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95328</commentid>
    <comment_count>2</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2013-10-25 00:11:13 +0000</bug_when>
    <thetext>Yeah, it&apos;s possible that adding maxlength for a sever-side limitation. However I haven&apos;t seen actual instances of input[type=email][maxlength]. I&apos;m afraid maxlength solves non-existent problem.

Ok, I&apos;ll add usage-counting code of input[type=email][maxlength] to Google Chrome, and will report the result a few months later.

I think minlength is really useless for type=email.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95374</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-25 23:26:12 +0000</bug_when>
    <thetext>It&apos;s true that I&apos;ve never seen type=email maxlength...

minlength is there purely because maxlength is. I didn&apos;t want there to be a one-off control that happened to only have one of the two or something. It seemed pointlessly complicated.

Seems like a reasonable request. Anyone object?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95403</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2013-10-27 12:03:06 +0000</bug_when>
    <thetext>Seems reasonable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95410</commentid>
    <comment_count>5</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2013-10-27 20:55:20 +0000</bug_when>
    <thetext>Removing it sounds good, but let’s wait for the data (comment #2) before making a decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95474</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-28 21:45:09 +0000</bug_when>
    <thetext>Roger.

Kent, when you have the data please let us know, thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99118</commentid>
    <comment_count>7</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2014-01-27 01:55:22 +0000</bug_when>
    <thetext>It seems removing maxlength support for type=email is not reasonable.


Google Chrome 32 Stable has usage counting code for type=email and maxlength. The result:

Ratio of the number of input[type=email][maxlength]:not([multiple]) to the number of input[type=email]:not([multiple])
        23.8%

Ratio of the number of input[type=email][maxlength][multiple] to the number of input[type=email][multiple]
        0.4%

FYI. Ratio of the number of input[type=email][multiple] to the number of input[type=email]
        0.09%
FYI. Ratio of the number of text inputs with maxlength to the number of text inputs
        30.9%
FYI. Ratio of the number of input[type=password][maxlength] to the number of input[type=password]
        23.0%</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99179</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-01-27 19:08:34 +0000</bug_when>
    <thetext>:-(

I guess we&apos;ll mark this WONTFIX. :-(</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>