Re: Re: empty list of options for SelectWidget
David Binger <[email protected]>
| Newsgroups | gmane.comp.web.quixote.user |
|---|---|
| Message-ID | <[email protected]> |
On Sep 7, 2006, at 12:55 PM, Neil Schemenauer wrote: > On Thu, Sep 07, 2006 at 12:39:21PM -0400, [email protected] wrote: >> I suspect it was done on the basis that it seemed non-sensical at >> the time. > > Yes, I think that must be it. The HTML and XHTML DTDs do not allow > empty select widgets: > > <!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector --> > > Note the + which means one or more. I will leave the code alone but > add a comment. Maybe SelectWidget should not render as a SELECT element when there are less than 2 options.