- From: Ian Hickson <ian@hixie.ch>
- Date: Wed, 5 Nov 2008 15:20:25 +0000 (UTC)
On Sat, 31 May 2008, Christoph P?per wrote: > > When using > > <input type=checkbox> > > or > > <select multiple> > > one somtimes wants to limit the number of selected check boxes or > options. I have no idea how to model this with |input|, but |select| > could adopt the |min| and |max| attributes. They would not limit the > content of |value| but the number of selected |option|s, which is > similar to what is already specified for file upload controls. A common > and special case would be setting the same value on both attributes to > require a certain number of options to be selected. > > I'd really like it if someone could come up with a way to make this work > with |input|, too. Since this is a pretty specialised desire, and not one that we really want to encourage (it's somewhat sub-optimal UI), I think this is something we should leave up to scripts to enforce, using oninput="", setCustomValidity(), and so forth. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 5 November 2008 07:20:25 UTC