Re: [whatwg] Web Forms attributes: minlength / autocomplete

2008-10-28 Thread Ian Hickson
On Wed, 6 Jun 2007, Sander wrote: > > I'd like to see a minlength attribute that can be used on the same > elements as the maxlength attribute. The default value can be "0" unless > the required atribute is set (in that case it should be >1). The value > of the element should be trimmed of space

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-07 Thread Sander
Anne van Kesteren schreef: On Thu, 07 Jun 2007 21:21:44 +0200, Sander <[EMAIL PROTECTED]> wrote: Before HTML5 there was no HTML validation (as opposed to JS validation) for form controls. So truncating the input value was probably the only way to force the given maxlength (perhaps that's also

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-07 Thread Anne van Kesteren
On Thu, 07 Jun 2007 21:21:44 +0200, Sander <[EMAIL PROTECTED]> wrote: Before HTML5 there was no HTML validation (as opposed to JS validation) for form controls. So truncating the input value was probably the only way to force the given maxlength (perhaps that's also why there wasn't a minlen

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-07 Thread Sander
Michel Fortin schreef: Le 2007-06-06 à 6:56, Sander a écrit : I'd like to see a minlength attribute that can be used on the same elements as the maxlength attribute. I'm not sure a minlength attribute like this can be consistent with maxlength. The maxlength attribute prevents users from

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-07 Thread Kristof Zelechovski
:[EMAIL PROTECTED] On Behalf Of Sander Sent: Wednesday, June 06, 2007 12:56 PM To: [EMAIL PROTECTED] Subject: [whatwg] Web Forms attributes: minlength / autocomplete Hello, I have a request and a question about Web Form attributes: --- minlength --- I'd like to see a minlength attribute tha

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-07 Thread Kristof Zelechovski
ailto:[EMAIL PROTECTED] On Behalf Of Thomas Broyer Sent: Wednesday, June 06, 2007 4:18 PM To: [EMAIL PROTECTED] Subject: Re: [whatwg] Web Forms attributes: minlength / autocomplete Re required, see above. maxlength was already in HTML4, so (i guess) it's kept merely for backwards compatibili

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-06 Thread Michel Fortin
Le 2007-06-06 à 6:56, Sander a écrit : I'd like to see a minlength attribute that can be used on the same elements as the maxlength attribute. I'm not sure a minlength attribute like this can be consistent with maxlength. The maxlength attribute prevents users from entering more character

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-06 Thread Sander
Thomas Broyer schreef: <...> Even though there are only 5 characters... if it has no meaning to someone they can easily make mistakes: "{3,}." or ",{3.}". Easy as it is, this stuff is abrcadabra to a lot of authors. Given that: If the pattern given by the attribute specifies a pattern that i

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-06 Thread Thomas Broyer
2007/6/6, Sander: Thomas Broyer schreef: > > Yes, minlength could be handy, but pattern=".{3,}" is not that > difficult (equivalent to minlength=3 here). I see it's not really difficult, that's true (as I said before, I don't know much about regular expressions). But as I more than once heard t

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-06 Thread Sander
Thomas Broyer schreef: 2007/6/6, Sander: But if you can use pattern to define a minimal length, than I'm sure you can define a minimal length bigger than 0, which makes it required. No, because "Controls with no value selected do not need to match their pattern. (Although if they are required

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-06 Thread Thomas Broyer
2007/6/6, Sander: Anne van Kesteren schreef: >>> Why can't you use pattern= for this? >> >> Maybe I could use that, but as a front-end developer I'm not aware of >> all the possibilities and grammar of regular expressions (as goes for >> a lot of front-end developers I guess, even proffessionals

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-06 Thread Sander
Anne van Kesteren schreef: Why can't you use pattern= for this? Maybe I could use that, but as a front-end developer I'm not aware of all the possibilities and grammar of regular expressions (as goes for a lot of front-end developers I guess, even proffessionals). I guess pattern can be use

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-06 Thread Anne van Kesteren
On Wed, 06 Jun 2007 14:15:02 +0200, Sander <[EMAIL PROTECTED]> wrote: Why can't you use pattern= for this? Maybe I could use that, but as a front-end developer I'm not aware of all the possibilities and grammar of regular expressions (as goes for a lot of front-end developers I guess, even

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-06 Thread Sander
Anne van Kesteren schreef: On Wed, 06 Jun 2007 12:56:23 +0200, Sander <[EMAIL PROTECTED]> wrote: --- minlength --- I'd like to see a minlength attribute that can be used on the same elements as the maxlength attribute. <...> Why can't you use pattern= for this? Maybe I could use that, but as

Re: [whatwg] Web Forms attributes: minlength / autocomplete

2007-06-06 Thread Anne van Kesteren
On Wed, 06 Jun 2007 12:56:23 +0200, Sander <[EMAIL PROTECTED]> wrote: --- minlength --- I'd like to see a minlength attribute that can be used on the same elements as the maxlength attribute. The default value can be "0" unless the required atribute is set (in that case it should be >1). The valu

[whatwg] Web Forms attributes: minlength / autocomplete

2007-06-06 Thread Sander
Hello, I have a request and a question about Web Form attributes: --- minlength --- I'd like to see a minlength attribute that can be used on the same elements as the maxlength attribute. The default value can be "0" unless the required atribute is set (in that case it should be >1). The value