W3C home > Mailing lists > Public > www-validator@w3.org > April 2014

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

From: David Dorward <david@dorward.me.uk>
Date: Wed, 16 Apr 2014 14:39:06 +0100
To: "Ken Geis" <kgeis@berkeley.edu>
Cc: www-validator@w3.org
Message-ID: <1A1439F2-6AE3-4BE8-9A02-309E79C52445@dorward.me.uk>
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>
<select size=1>
<optgroup label=jkldf>

David Dorward
Received on Wednesday, 16 April 2014 13:39:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:10 UTC