I am using FF 25.0.1
It ignores selected="" and selected="selected" .
But if I just try selected , the option will be selected.
Strange (inappropriate) behavior. I know that selected is valid HTML5 and this is the shortest form, but I usually write code that also validates as well-formed XML, so I can use any XML validation tool to validate my results in a very rigorous way (and sharing data is very easily...)
According to the W3C, these options must be valid for logical attributes:
HTML5: boolAttr="" | boolAttr="boolAttr" | boolAttr XHTML5: boolAttr="" | boolAttr="boolAttr"
I prefer the first one, as it is almost as short as the last (and not xml-compatible) option, but should be checked both by XHTML5 and HTML5. So I hope Mozilla fix it!
Michael Dec 17 '13 at 12:55 2013-12-17 12:55
source share