W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2006

[whatwg] minlength attribute

From: laos <carlos.sanabria@gmail.com>
Date: Wed, 1 Mar 2006 08:53:31 -0500
Message-ID: <ae1ad04c0603010553q62eb6689u@mail.gmail.com>
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.htm>
Received on Wednesday, 1 March 2006 05:53:31 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:45 UTC