[whatwg] introduction, plus some form input ideas

Brad Fults bfults at gmail.com
Fri Feb 3 17:58:53 PST 2006

On 1/30/06, Ric Hardacre <ric at hardacre.org> wrote:
> hello, i'm an asp developer in the uk and have a couple of
> suggestions... no doubt selfishly to make my life easier one day :-)
> these could probably do with their own threads if they're deemed worthy
> of discussion but let's just throw them out there:
> 1. form tag:
>     send="all" , (default, send all fields to server in get/post)
>     send="changed" , only send hidden fields and fields that have been
> changed by the user

Agreed, this is useful. Details of the implications of this, however,
I am not so sure of.

> the idea being that if i'm running a datagrid then there's no point
> sending a ton of data back and forth if the user only edits a couple of
> cells. but the hidden form data will still be needed in any case so i
> can still connect the data sent to the user who sent it!
> 2. select tag:
>     selectedindex="[num]"

Agreed. This would be very useful.

> implicitly set the selected index, instead of having to parse all the
> option tags and insert a "selected" string, much easier to bind to
> server side data, an invalid value (such as -1 or greater than the
> number of option tags) would mean none are selected. this would
> obviously not apply to multiple-selects
> 3. input tags:
>     validate="[regex]"

See: http://whatwg.org/specs/web-forms/current-work/#the-pattern

Brad Fults

More information about the whatwg mailing list