[html5] r938 - /

whatwg at whatwg.org whatwg at whatwg.org
Wed Jun 20 16:21:31 PDT 2007


Author: ianh
Date: 2007-06-20 16:21:08 -0700 (Wed, 20 Jun 2007)
New Revision: 938

Modified:
   index
   source
Log:
[] (0) Disallow scoped <style> in <head> and non-scoped <style> outside <head>.

Modified: index
===================================================================
--- index	2007-06-20 22:56:30 UTC (rev 937)
+++ index	2007-06-20 23:21:08 UTC (rev 938)
@@ -7681,11 +7681,14 @@
   <dl class=element>
    <dt>Contexts in which this element may be used:
 
-   <dd>In a <code><a href="#head">head</a></code> element.
+   <dd>If the <code title=attr-style-scoped><a href="#scoped"></a></code> is
+    absent: in a <code><a href="#head">head</a></code> element.
 
-   <dd>At the start of <code><a href="#article">article</a></code>, <code><a
-    href="#aside">aside</a></code>, <code><a href="#div">div</a></code>, and
-    <code><a href="#section">section</a></code> elements.
+   <dd>If the <code title=attr-style-scoped><a href="#scoped"></a></code> is
+    present: at the start of <code><a href="#article">article</a></code>,
+    <code><a href="#aside">aside</a></code>, <code><a
+    href="#div">div</a></code>, and <code><a
+    href="#section">section</a></code> elements.
 
    <dt>Content model:
 
@@ -7754,6 +7757,20 @@
    parent element (if any), and that element's child nodes. Otherwise, the
    specified styles must, if applied, be applied to the entire document.
 
+  <p>If the <code title=attr-style-scoped><a href="#scoped">scoped</a></code>
+   attribute is not specified, the <code><a href="#style">style</a></code>
+   element must be the child of a <code><a href="#head">head</a></code>
+   element.
+
+  <p>If the <code title=attr-style-scoped><a href="#scoped">scoped</a></code>
+   attribute <em>is</em> specified, then the <code><a
+   href="#style">style</a></code> element must be the child of an <code><a
+   href="#article">article</a></code>, <code><a
+   href="#aside">aside</a></code>, <code><a href="#div">div</a></code>, or
+   <code><a href="#section">section</a></code> element, before any <a
+   href="#significant0">significant text</a> or any elements other than
+   <code><a href="#style">style</a></code> elements.
+
   <p id=title-on-style>The <dfn id=title3
    title=attr-style-title><code>title</code></dfn> attribute on <code><a
    href="#style">style</a></code> elements defines <a

Modified: source
===================================================================
--- source	2007-06-20 22:56:30 UTC (rev 937)
+++ source	2007-06-20 23:21:08 UTC (rev 938)
@@ -6291,8 +6291,8 @@
 
   <dl class="element">
    <dt>Contexts in which this element may be used:</dt>
-   <dd>In a <code>head</code> element.</dd>
-   <dd>At the start of <code>article</code>, <code>aside</code>, <code>div</code>, and <code>section</code> elements.</dd>
+   <dd>If the <code title="attr-style-scoped">scoped</code> attribute is absent: in a <code>head</code> element.</dd>
+   <dd>If the <code title="attr-style-scoped">scoped</code> attribute is present: at the start of <code>article</code>, <code>aside</code>, <code>div</code>, and <code>section</code> elements.</dd>
    <dt>Content model:</dt>
    <dd>Depends on the value of the <code title="attr-style-type">type</code> attribute.</dd>
    <dt>Element-specific attributes:</dt>
@@ -6349,6 +6349,17 @@
   any), and that element's child nodes. Otherwise, the specified
   styles must, if applied, be applied to the entire document.</p>
 
+  <p>If the <code title="attr-style-scoped">scoped</code> attribute is not specified,
+  the <code>style</code> element must be the child of a
+  <code>head</code> element.</p>
+
+  <p>If the <code title="attr-style-scoped">scoped</code> attribute
+  <em>is</em> specified, then the <code>style</code> element must be
+  the child of an <code>article</code>, <code>aside</code>,
+  <code>div</code>, or <code>section</code> element, before any
+  <span>significant text</span> or any elements other than
+  <code>style</code> elements.</dd>
+
   <p id="title-on-style">The <dfn
   title="attr-style-title"><code>title</code></dfn> attribute on
   <code>style</code> elements defines <span>alternative style sheet




More information about the Commit-Watchers mailing list