Re: [VE] [html5] spurious "must have child option" when all options in optgroups

"David Dorward" <[email protected]>
Newsgroups gmane.org.w3c.validator
Message-ID <[email protected]>
On 15 Apr 2014, at 23:16, Ken Geis wrote:

> I got the following error when validating my document. The HTML 4.01 
> spec says that the select element must contain an option, but it does 
> not say that it must be a child of the select element. The validator 
> throws the message when all options are inside optgroups, and I think 
> that should not be an error.

I just created and validated this document (where all options are 
children of opt groups) and the validator passed it.

Can you provide a reproducible test case to go with your bug report?

<!DOCTYPE html>
<title>test</title>
<select size=1>
<optgroup label=jkldf>
    <option>hello
</optgroup>
</select>


-- 
David Dorward
http://dorward.co.uk/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.