[whatwg] minlength attribute

laos carlos.sanabria at gmail.com
Wed Mar 1 05:53:31 PST 2006


2006/2/28, Matthew Raymond <mattraymond at earthlink.net>:
>
> laos wrote:
> > minlength attribute.
> > This attribute applies to |text|, |password|, |url|, and |email|
> > input types, and |textarea| elements.
> >
> > For text input controls it specifies the minimum length of the input, in
> > terms of numbers of code points
>
>    Well, this wouldn't be useful at the actual time of input, because
> you may delete enough of the contents to go below the minimum length
> prior to putting in new input. Clearly this would have to apply for
> validation, and I believe that the |pattern| attribute would already
> cover this, as you can specify the number of character required in
> |pattern|. Or am I misunderstanding how |pattern| works?
>

 I think that this would be useful for forms in which a username or password
is asked, and is required that they contain at least six or eight characters
and I also consider that would be useful so that the user agents show error
messages.
The pattern attribute could solve this (with exception of the error
message), but also this attribute would solve many cases that the
specification solves of other way (I think that most of the things they
could be solved with this attribute).

Pardon for my English, I am from Colombia. :-)

--
Carlos sanabria
Ingeniero de Sistemas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20060301/49e33713/attachment-0001.htm>


More information about the whatwg mailing list