Skip to content

Commit

Permalink
[] (0) Define that relative URLs in CSS in HTML documents are not rer…
Browse files Browse the repository at this point in the history
…esolved when the base URL changes.

git-svn-id: http://svn.whatwg.org/webapps@2672 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 16, 2009
1 parent 589d7d3 commit 44e57af
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 16 deletions.
24 changes: 16 additions & 8 deletions index
Expand Up @@ -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-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 15 January 2009</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 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>
Expand Down Expand Up @@ -6973,12 +6973,15 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
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
Expand Down Expand Up @@ -9517,6 +9520,11 @@ people expect to have work and what is necessary.
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>

Expand Down Expand Up @@ -52419,7 +52427,7 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {

<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
Expand Down
25 changes: 17 additions & 8 deletions source
Expand Up @@ -7082,12 +7082,16 @@ interface <dfn>HTMLDocument</dfn> {
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
Expand Down Expand Up @@ -10006,6 +10010,11 @@ people expect to have work and what is necessary.
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>
Expand Down Expand Up @@ -59686,7 +59695,7 @@ interface <dfn>MessageChannel</dfn> {

<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
Expand All @@ -59696,7 +59705,7 @@ interface <dfn>MessageChannel</dfn> {
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>

Expand Down

0 comments on commit 44e57af

Please sign in to comment.