This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20557 - minlength and tooShort
Summary: minlength and tooShort
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P3 enhancement
Target Milestone: ---
Assignee: Robin Berjon
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-03 21:05 UTC by Eric Elliott
Modified: 2015-06-26 05:37 UTC (History)
4 users (show)

See Also:


Attachments

Description Eric Elliott 2013-01-03 21:05:53 UTC
Form fields support the `maxlength` attribute, and a corresponding `tooLong` attribute on the `ValidityState` object -- an obviously useful feature.

However, it's common to require that passwords (and many other fields) conform to a minimum length, as well. Currently, this must be done with custom code or by an awkward `pattern` attribute.

I propose a `minlength` attribute, and a corresponding `ValidityState` attribute, `tooShort`.
Comment 1 Robin Berjon 2013-01-21 16:00:34 UTC
Mass move to "HTML WG"
Comment 2 Robin Berjon 2013-01-21 16:03:15 UTC
Mass move to "HTML WG"
Comment 3 Michael[tm] Smith 2015-06-16 11:44:31 UTC
Resolved as already fixed in W3C HTML nightly/ED