This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Why does the validator not OK the following? Example: <!DOCTYPE html><html><head><title></title></head><body><style scoped>style+*{background:red}</style><p>abc The error message explains that <style scoped> can be used: ]] 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.[[ But as the error message itself says: <body>'s content model is *not* transparent. Hence, the spec does permit <style scope> to be the direct child of <body>. Currently, the validator would OK the above example, if I had done <div><style scope>/*foo*/</style></div>
The validator doesn't fully support <style scoped> yet. I think there are bugzilla.validator.nu bugs open for it already. It's not been a big priority given that until very recently there was zero browser support for it.
Fixed. You can test at http://validator.w3.org/nu/