- From: <bugzilla@jessica.w3.org>
- Date: Tue, 25 Feb 2014 15:04:56 +0000
- To: www-validator-cvs@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24801 Bug ID: 24801 Summary: <option> content model Product: Nu Markup Checker Version: unspecified Hardware: PC OS: Windows NT Status: NEW Severity: major Priority: P2 Component: General Assignee: mike+validator@w3.org Reporter: master.skywalker.88@gmail.com QA Contact: www-validator-cvs@w3.org Just tried to validate a document with a <option> element. The syntax for the specific fragment was as follows: <select> <option label="Opel" value="opel"></option> <option label="Audi" value="audi" /> </select> The second option (Audi) has a label and a value, so according to the specs it admits an empty content model as well as end tag omission. I use the XHTML syntax which is allowed in HTML (though it has no effect). The response from the validator is error. More precisely Self-closing syntax (/>) used on a non-void HTML element. Ignoring the slash and treating as a start tag. Which is somehow confusing, as in this structure the option element is effectively treated as void (it cannot have both label+value and content). In fact when validating the same document as XHTML, the validator flags nothing. If the problem is in using the self-closing syntax in a non-void element, then the element is non-void as both HTML and XHTML (the validation for the latter does not take into account only well-formedness) and XHTML validation must report it accordingly. If, on the contrary, there's a bug in the validator not recognizing the void element, then it's HTML validator which must be corrected. It's the same issue as "<menuitem> content model" that I sent some weeks ago (still unresponded). -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Tuesday, 25 February 2014 15:04:57 UTC