This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20638 - Is scoped required if 'style' is not in 'head'? The wording is too vague. Validators raise errors for missing 'scoped', but here it is described as optional.
Summary: Is scoped required if 'style' is not in 'head'? The wording is too vague. Val...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-10 19:16 UTC by contributor
Modified: 2013-04-12 23:18 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2013-01-10 19:16:06 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html
Multipage: http://www.whatwg.org/C#the-style-element
Complete: http://www.whatwg.org/c#the-style-element

Comment:
Is scoped required if 'style' is not in 'head'? The wording is too vague.
Validators raise errors for missing 'scoped', but here it is described as
optional.

Posted from: 84.183.87.178
User agent: Opera/9.80 (Windows NT 6.1; Win64; x64) Presto/2.12.388 Version/12.11
Comment 1 Ian 'Hixie' Hickson 2013-03-07 23:17:30 UTC
I don't understand why it's vague. The spec very explicitly says "If the scoped attribute is present and the element has a parent element, then the style element must be the first node of flow content in its parent element other than inter-element whitespace, and the parent element's content model must not have a transparent component", and the element's categories only include "flow content" (which is what would allow it to be used outside of <head>) if the element has a "scoped" attribute.

I can add a non-normative note, if that would help, but where should I add it such that it would be more visible than the above?
Comment 2 Ian 'Hixie' Hickson 2013-04-12 23:16:21 UTC
I've tried to be more explicit, but I've no idea if it's enough.
Comment 3 contributor 2013-04-12 23:18:55 UTC
Checked in as WHATWG revision r7825.
Check-in comment: More elaboraton on <style scoped> requirements.
http://html5.org/tools/web-apps-tracker?from=7824&to=7825