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

select control element requires option element

From: John Russell <ve3ll@rac.ca>
Date: Sat, 28 Aug 2004 14:12:41 +0000
To: www-html@w3.org
Message-ID: <41305C2D.6402.623ED6@localhost>

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


This page will not verify using the current spec.  Should your
recommendations limit the use of dynamic scripting ???
Was this just an unanticipated case....
Of course a workaround is to force a blank option,
and first insert to list, overwrite rather than adding to list.
But that is crude compared to tolerating a blank list in the
first place .....  

john russell ve3ll@rac.ca [those are L's as in LLAMA]
Received on Wednesday, 1 September 2004 17:44:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:09 UTC