HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2672Define that relative URLs in CSS in HTML documents are not reresolved when the base URL changes.2009-01-16 00:54
@@ -7075,26 +7075,30 @@ interface <dfn>HTMLDocument</dfn> {
 
 
 
   <h5>The <dfn title="attr-style"><code>style</code></dfn> attribute</h5>
 
   <p>All elements may have the <code title="attr-style">style</code>
   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 <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
   usable if those attributes were removed.</p>
 
   <p class="note">In particular, using the <code
   title="attr-style">style</code> attribute to hide and show content,
   or to convey meaning that is otherwise not included in the document,
   is non-conforming.</p>
 
@@ -9999,20 +10003,25 @@ people expect to have work and what is necessary.
   semantics, before the <code>style</code> element itself is
   evaluated. For styling languages that consist of pure text, user
   agents must evaluate <code>style</code> elements by passing the
   concatenation of the contents of all the <span title="text
   node">text nodes</span> that are direct children of the
   <code>style</code> element (not any other nodes such as comments or
   elements), in <span>tree order</span>, to the style system. For
   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>
 
   <p>The <dfn title="dom-style-media"><code>media</code></dfn>, <dfn
   title="dom-style-type"><code>type</code></dfn> and <dfn
   title="dom-style-scoped"><code>scoped</code></dfn> DOM attributes
   must <span>reflect</span> the respective content attributes of the
   same name.</p>
 
@@ -59679,31 +59688,31 @@ interface <dfn>MessageChannel</dfn> {
   load event</dfn> has completed, the user agent must run the
   following steps:</p>
 
   <ol>
 
    <li><span>Queue a task</span> to set the <span>current document
    readiness</span> to "complete".</li>
 
    <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
    title="event-popstate">popstate</code> event in no namespace on
    <span>the body element</span> using the <code>PopStateEvent</code>
    interface, with the <code
    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>
 
   <p>The <span>task source</span> for these tasks is the <span>DOM
   manipulation task source</span>.</p>
 
   <!-- XXX make sure things "delay the load event" -->
 
   <p class="XXX">delaying the load event for things like image
   loads allows for intranet port scans (even without

|