[whatwg] minlength attribute
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
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. :-)
Ingeniero de Sistemas
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg