W3C home > Mailing lists > Public > www-html@w3.org > September 2004

Re: select control element requires option element

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 2 Sep 2004 00:40:01 +0000 (UTC)
To: John Russell <ve3ll@rac.ca>
Cc: www-html@w3.org, gerald@w3.org
Message-ID: <Pine.LNX.4.61.0409020038490.10625@dhalsim.dreamhost.com>

On Sat, 28 Aug 2004, John Russell wrote:
> 
> It is clearly stated in html4.01 rec that at least one 
> option element is required in a select element...
> 
> However these days option elements can be added dynamically
> thru scripts.  What if one wanted to create a blank list whose
> elements were to be added later as in my example at
> 
> http://home.cogeco.ca/~ve3ll/jstutor4.htm#dy
> 
> This page will not verify using the current spec.  Should your
> recommendations limit the use of dynamic scripting ???

Note that the Web Forms 2.0 proposal addresses this by allowing empty 
<select> elements:

   http://www.whatwg.org/specs/web-forms/current-work/#changes

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 2 September 2004 00:40:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:00 GMT