NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 438 - False positive in validator on style scoped
False positive in validator on style scoped
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-22 03:06 CET by Brenton
Modified: 2013-04-22 06:14 CEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brenton 2009-01-22 03:06:35 CET
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.
Comment 1 Sean Fraser 2010-05-09 03:38:07 CEST
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".
Comment 2 Michael[tm] Smith 2013-04-22 06:14:29 CEST
Fixed. You can test at http://validator.w3.org/nu/