[html5] r2672 - [] (0) Define that relative URLs in CSS in HTML documents are not reresolved whe [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jan 15 16:54:22 PST 2009


Author: ianh
Date: 2009-01-15 16:54:21 -0800 (Thu, 15 Jan 2009)
New Revision: 2672

Modified:
   index
   source
Log:
[] (0) Define that relative URLs in CSS in HTML documents are not reresolved when the base URL changes.

Modified: index
===================================================================
--- index	2009-01-15 22:11:55 UTC (rev 2671)
+++ index	2009-01-16 00:54:21 UTC (rev 2672)
@@ -22,7 +22,7 @@
   <div class=head>
    <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <h1>HTML 5</h1>
-   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 15 January 2009</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 16 January 2009</h2>
    <p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <dl><dt>Multiple-page version:</dt>
@@ -6973,12 +6973,15 @@
   content attribute set. If specified, the attribute must contain only
   a list of zero or more semicolon-separated (;) CSS declarations. <a href=#refsCSS21>[CSS21]</a></p>
 
-  <p>The attribute, if specified, must be parsed and treated as the
-  body (the part inside the curly brackets) of a declaration block in
-  a rule whose selector matches just the element on which the
-  attribute is set. For the purposes of the CSS cascade, the attribute
-  must be considered to be a 'style' attribute at the author
-  level.</p>
+  <p>In user agents that support CSS, the attribute's value must be
+  parsed when the attribute is added or has its value changed, with
+  its value treated as the body (the part inside the curly brackets)
+  of a declaration block in a rule whose selector matches just the
+  element on which the attribute is set. All <a href=#url title=URL>URLs</a> in the value must be <a href=#resolve-a-url title="resolve a
+  url">resolved</a> when the attribute is parsed.<!-- so dynamic
+  changes to the base URL don't affect the CSS --> For the purposes of
+  the CSS cascade, the attribute must be considered to be a 'style'
+  attribute at the author level. </p>
 
   <p>Documents that use <code title=attr-style><a href=#the-style-attribute>style</a></code>
   attributes on any of their elements must still be comprehensible and
@@ -9517,6 +9520,11 @@
   XML-based styling languages, user agents must pass all the children
   nodes of the <code><a href=#the-style-element>style</a></code> element to the style system.</p>
 
+  <p>All <a href=#url title=URL>URLs</a> found by the styling language's
+  processor must be <a href=#resolve-a-url title="resolve a url">resolved</a> when
+  it is invoked.<!-- so dynamic changes to the base URL don't affect
+  the CSS --></p>
+
   <p class=note>This specification does not specify a style system,
   but CSS is expected to be supported by most Web browsers. <a href=#refsCSS21>[CSS21]</a></p>
 
@@ -52419,7 +52427,7 @@
 
    <li><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-load-event title="fire a load
    event">fire a <code title=event-load>load</code> event</a> at
-   <a href=#the-body-element-1>the <code>body</code> element</a>.
+   <a href=#the-body-element-1>the <code>body</code> element</a>.</li>
 
    <li>If the <code>Document</code> has a <a href=#pending-state-object>pending state
    object</a>, then <a href=#queue-a-task>queue a task</a> to fire a <code title=event-popstate><a href=#event-popstate>popstate</a></code> event in no namespace on

Modified: source
===================================================================
--- source	2009-01-15 22:11:55 UTC (rev 2671)
+++ source	2009-01-16 00:54:21 UTC (rev 2672)
@@ -7082,12 +7082,16 @@
   a list of zero or more semicolon-separated (;) CSS declarations. <a
   href="#refsCSS21">[CSS21]</a></p>
 
-  <p>The attribute, if specified, must be parsed and treated as the
-  body (the part inside the curly brackets) of a declaration block in
-  a rule whose selector matches just the element on which the
-  attribute is set. For the purposes of the CSS cascade, the attribute
-  must be considered to be a 'style' attribute at the author
-  level.</p>
+  <p>In user agents that support CSS, the attribute's value must be
+  parsed when the attribute is added or has its value changed, with
+  its value treated as the body (the part inside the curly brackets)
+  of a declaration block in a rule whose selector matches just the
+  element on which the attribute is set. All <span
+  title="URL">URLs</span> in the value must be <span title="resolve a
+  url">resolved</span> when the attribute is parsed.<!-- so dynamic
+  changes to the base URL don't affect the CSS --> For the purposes of
+  the CSS cascade, the attribute must be considered to be a 'style'
+  attribute at the author level. </p>
 
   <p>Documents that use <code title="attr-style">style</code>
   attributes on any of their elements must still be comprehensible and
@@ -10006,6 +10010,11 @@
   XML-based styling languages, user agents must pass all the children
   nodes of the <code>style</code> element to the style system.</p>
 
+  <p>All <span title="URL">URLs</span> found by the styling language's
+  processor must be <span title="resolve a url">resolved</span> when
+  it is invoked.<!-- so dynamic changes to the base URL don't affect
+  the CSS --></p>
+
   <p class="note">This specification does not specify a style system,
   but CSS is expected to be supported by most Web browsers. <a
   href="#refsCSS21">[CSS21]</a></p>
@@ -59686,7 +59695,7 @@
 
    <li><span>Queue a task</span> to <span title="fire a load
    event">fire a <code title="event-load">load</code> event</span> at
-   <span>the <code>body</code> element</span>.</p>
+   <span>the <code>body</code> element</span>.</li>
 
    <li>If the <code>Document</code> has a <span>pending state
    object</span>, then <span>queue a task</span> to fire a <code
@@ -59696,7 +59705,7 @@
    title="dom-PopStateEvent-state">state</code> attribute set to the
    current value of the <span>pending state object</span>. This event
    must bubble but not be cancelable and has no default
-   action.</p></li>
+   action.</li>
 
   </ol>
 




More information about the Commit-Watchers mailing list