Re: select control element requires option element

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 UTC