<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>149832</bug_id>
          <alias>minlength</alias>
          <creation_ts>2015-10-05 22:04:24 -0700</creation_ts>
          <short_desc>Add support for input[minlength], textarea[minlength], and ValidityState.tooShort</short_desc>
          <delta_ts>2016-09-29 00:22:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>161644</dup_id>
          <see_also>https://bugzilla.mozilla.org/show_bug.cgi?id=932755</see_also>
          <bug_file_loc>https://html.spec.whatwg.org/multipage/forms.html#attr-input-minlength</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HTML5</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Rebert">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>derek.p.moore</cc>
    
    <cc>kai.hollberg</cc>
    
    <cc>mkhatib727</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1130864</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Rebert">webkit</who>
    <bug_when>2015-10-05 22:04:24 -0700</bug_when>
    <thetext>i.e. Implement the `minlength` attribute

Relevant specs:
* https://html.spec.whatwg.org/multipage/forms.html#attr-input-minlength
* https://html.spec.whatwg.org/multipage/forms.html#attr-textarea-minlength
* https://html.spec.whatwg.org/multipage/forms.html#dom-validitystate-tooshort</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1195574</commentid>
    <comment_count>1</comment_count>
    <who name="Derek Moore">derek.p.moore</who>
    <bug_when>2016-05-23 14:15:13 -0700</bug_when>
    <thetext>Don&apos;t feel bad, Firefox is also sucking at implementing this: https://bugzilla.mozilla.org/show_bug.cgi?id=932755</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1195575</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Rebert">webkit</who>
    <bug_when>2016-05-23 14:19:25 -0700</bug_when>
    <thetext>For the record, Blink implements this:
http://caniuse.com/#feat=input-minlength</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1195578</commentid>
    <comment_count>3</comment_count>
    <who name="Derek Moore">derek.p.moore</who>
    <bug_when>2016-05-23 14:29:42 -0700</bug_when>
    <thetext>FWIW, you&apos;ll be way ahead of both Chrome/Blink &amp; Mozilla/Firefox if you can make minlength &amp; maxlength work together so as to form a character length range (as per spec)!

See the &quot;Name of Event&quot; example here: https://html.spec.whatwg.org/multipage/forms.html#attr-fe-minlength</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1195594</commentid>
    <comment_count>4</comment_count>
    <who name="Derek Moore">derek.p.moore</who>
    <bug_when>2016-05-23 15:05:36 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; For the record, Blink implements this:
&gt; http://caniuse.com/#feat=input-minlength

Logged this bug with them for completeness:
https://bugs.chromium.org/p/chromium/issues/detail?id=614175</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1221372</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Rebert">webkit</who>
    <bug_when>2016-08-19 09:07:46 -0700</bug_when>
    <thetext>Firefox has implemented this feature in version 51.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234474</commentid>
    <comment_count>6</comment_count>
    <who name="Kai">kai.hollberg</who>
    <bug_when>2016-09-28 12:02:38 -0700</bug_when>
    <thetext>Probably fixed by https://bugs.webkit.org/show_bug.cgi?id=161644 ?

Not sure about ValidityState.tooShort, in the diff https://bugs.webkit.org/attachment.cgi?id=288065&amp;action=diff it seems to be at least mentioned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234738</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Rebert">webkit</who>
    <bug_when>2016-09-29 00:22:33 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 161644 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>