NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 734 - Multiple options selected in multiple optgroups
Multiple options selected in multiple optgroups
Classification: Unclassified
Component: HTML parser
All All
: P2 normal
Assigned To: Michael[tm] Smith
Depends on:
  Show dependency treegraph
Reported: 2010-04-06 18:22 CEST by Sean Fraser
Modified: 2010-04-10 00:24 CEST (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Sean Fraser 2010-04-06 18:22:05 CEST
Select element has multiple attribute specified. Multiple options are selected in multiple optgroups. Resulting in this Error: "The select element cannot have more than one selected option descendant unless the multiple attribute is specified." 

The Validator has not made allowances for multiple "Optgroup" elements having multiple option elements being "selected" even when the "multiple" attribute has been specified in the "select" element.  In my case, it is the second and third "Optgroups" which are causing invalidity.
Comment 1 Michael[tm] Smith 2010-04-10 00:24:49 CEST
Sean, Thanks very much for catching this. It's fixed now in the source repository and live at as well as at (which is a standalone instance of So please test there and raise bugs for any new issues you find.

By the way, the problem actually wasn't due to the use of multiple optgroups; it was instead just a logic error in the code that caused any instancea of multiple option elements with selected attributes to get reported as errors.

Also, for what it's worth, I noticed you do have a genuine validity error in your current markup: You have an instance of an input/@type=reset element hat has a formnovalidate attribute on it. But the formnovalidate attribute is only allowed on input elements of type=submit or type=image.

syntax r551