Bugzilla – Bug 438
False positive in validator on style scoped
Last modified: 2013-04-22 06:14:29 CEST
My node: <nav> <style scoped> </style> . . . </nav> Error: Contexts in which element style may be used: If the scoped attribute is absent: where metadata content is expected. If the scoped attribute is absent: in a noscript element that is a child of a head element. If the scoped attribute is present: where flow content is expected, but before any other flow content other than other style elements and inter-element whitespace. Content model for element nav: Flow content. Since scoped is present, I can put it in nav, which expects flow content. The validator disagrees on this point.
http://www.w3.org/html/check?doc=http%3A%2F%2Fwww.elementary-group-standards.com%2Fhtml-element-attributes%2Fposter-attribute has same error when "style scoped" is placed before any other flow content when using "DD" element (which has Flow content model). The only element that does not trigger an error message when using scoped is "DIV".
Fixed. You can test at http://validator.w3.org/nu/