Bugzilla – Bug 438
False positive in validator on style scoped
Last modified: 2013-04-22 06:14:29 CEST
. . .
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:
Since scoped is present, I can put it in nav, which expects flow content. The validator disagrees on this point.
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/