W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2004

[whatwg] Comments on Web Forms 2.0 Working Draft

From: Christian Schmidt <whatwg.org@chsc.dk>
Date: Tue, 29 Jun 2004 00:38:59 +0200
Message-ID: <40E09E03.6000904@chsc.dk>
Ian Hickson wrote:
> Generally though, it seems that the author would want to only set a
> control to a valid value... seems like bad UI for script to set a value
> and then later complain to the user that it isn't valid!
Not necessarily.

One scenario could be the following: A page contains a select box 
containg a list of countries, and a select box for containing a list of 
states/provinces in the selected country. When the country is changed, 
the current selection in the state/province select is cleared (and the 
control becomes invalid) and the select is filled with options for the 
new country (or disabled, if state/province is not used in postal 
addresses for that country).

Also it could be that the pattern or required attribute are changed by a 
script instead of the value. This could be on a page with a select box 
for choosing a country, and a text box for entering a postal code. The 
pattern for the postal code control could depend on the country.


Christian
Received on Monday, 28 June 2004 15:38:59 UTC

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