Bugzilla – Bug 734
Multiple options selected in multiple optgroups
Last modified: 2010-04-10 00:24:49 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.
Sean, Thanks very much for catching this. It's fixed now in the source repository and live at http://validator.w3.org as well as at http://www.w3.org/html/check (which is a standalone instance of valiator.nu). 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