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

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 ???
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]
http://home.cogeco.ca/~ve3ll
http://home.cogeco.ca/~trains
http://home.cogeco.ca/~cipher
Received on Wednesday, 1 September 2004 17:44:37 GMT

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