Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

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
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.