NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 968 - A style element with scoped attribute should be accepted at the start of body
A style element with scoped attribute should be accepted at the start of body
Status: CLOSED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-10 10:47 CET by Jukka K. Korpela
Modified: 2013-09-09 22:48 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jukka K. Korpela 2013-03-10 10:47:00 CET
The following minimal document causes an error message:

<!doctype html>
<title></title>
<body>
<style scoped></style>

The message says:
“Element style not allowed as child of element body in this context.”
followed by the following information:

“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 inter-element whitespace, and not as the child of an element whose content model is transparent.
Content model for element body:
    Flow content.”

Thus, the element should be accepted at the very start of the body element.
Comment 1 Michael[tm] Smith 2013-04-22 06:20:12 CEST
Fixed. You can test at http://validator.w3.org/nu/
Comment 2 Jukka K. Korpela 2013-09-09 22:48:52 CEST
Verified, fixed in http://validator.w3.org too.