Skip to content

Commit

Permalink
[giow] (3) Make sure to define how rel=stylesheet should be reloaded …
Browse files Browse the repository at this point in the history
…if you change .href

Affected topics: DOM APIs, HTML, Workers

git-svn-id: http://svn.whatwg.org/webapps@8240 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 23, 2013
1 parent a703b0f commit a52801d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 29 deletions.
26 changes: 18 additions & 8 deletions complete.html
Expand Up @@ -32752,13 +32752,24 @@ <h5 id=link-type-stylesheet><span class=secno>4.8.5.14 </span>Link type "<dfn ti

<div class=impl>

<p>The appropriate time to <a href=#concept-link-obtain title=concept-link-obtain>obtain</a> the resource is when
the <a href=#external-resource-link title="external resource link">external resource link</a> is created or when its
element is <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted into a document</a>,
whichever happens last. If the resource is <a href=#the-link-is-an-alternative-stylesheet title="the link is an alternative stylesheet">an
alternative stylesheet</a> then the user agent may defer obtaining the resource until it is
part of the <a href=#preferred-style-sheet-set>preferred style sheet set</a>. <a href=#refsCSSOM>[CSSOM]</a></p> <!-- what
about DOM access of alt style sheets? -->
<p>The appropriate times to <a href=#concept-link-obtain title=concept-link-obtain>obtain</a> the resource are:

<ul><li><p>When the <a href=#external-resource-link title="external resource link">external resource link</a>'s
<code><a href=#the-link-element>link</a></code> element is <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted into a
document</a>.</li>

<li><p>When the <a href=#external-resource-link title="external resource link">external resource link</a> is created on
a <code><a href=#the-link-element>link</a></code> element that is already <a href=#in-a-document>in a <code>Document</code></a>.</li>

<li><p>When the <code title=attr-link-href><a href=#attr-link-href>href</a></code> attribute of the <code><a href=#the-link-element>link</a></code>
element of an <a href=#external-resource-link title="external resource link">external resource link</a> that is already
<a href=#in-a-document>in a <code>Document</code></a> is changed.</li>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2588 -->

</ul><p>If the resource is <a href=#the-link-is-an-alternative-stylesheet title="the link is an alternative stylesheet">an alternative
stylesheet</a> then the user agent may defer obtaining the resource until it is part of the
<a href=#preferred-style-sheet-set>preferred style sheet set</a>. <a href=#refsCSSOM>[CSSOM]</a></p> <!-- what about DOM
access of alt style sheets? -->

<p><strong>Quirk</strong>: If the document has been set to <a href=#quirks-mode>quirks mode</a>, has the
<a href=#same-origin>same origin</a> as the <a href=#url>URL</a> of the external resource<!-- CVE-2010-0654 -->,
Expand Down Expand Up @@ -81412,7 +81423,6 @@ <h3 id=infrastructure-0><span class=secno>10.2 </span>Infrastructure</h3>
reference to that worker and communicate with it.</p>



<h4 id=the-global-scope><span class=secno>10.2.1 </span>The global scope</h4>

<p>The global scope is the "inside" of a worker.</p>
Expand Down
26 changes: 18 additions & 8 deletions index
Expand Up @@ -32752,13 +32752,24 @@ dictionary <dfn id=trackeventinit>TrackEventInit</dfn> : <a href=#eventinit>Even

<div class=impl>

<p>The appropriate time to <a href=#concept-link-obtain title=concept-link-obtain>obtain</a> the resource is when
the <a href=#external-resource-link title="external resource link">external resource link</a> is created or when its
element is <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted into a document</a>,
whichever happens last. If the resource is <a href=#the-link-is-an-alternative-stylesheet title="the link is an alternative stylesheet">an
alternative stylesheet</a> then the user agent may defer obtaining the resource until it is
part of the <a href=#preferred-style-sheet-set>preferred style sheet set</a>. <a href=#refsCSSOM>[CSSOM]</a></p> <!-- what
about DOM access of alt style sheets? -->
<p>The appropriate times to <a href=#concept-link-obtain title=concept-link-obtain>obtain</a> the resource are:

<ul><li><p>When the <a href=#external-resource-link title="external resource link">external resource link</a>'s
<code><a href=#the-link-element>link</a></code> element is <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted into a
document</a>.</li>

<li><p>When the <a href=#external-resource-link title="external resource link">external resource link</a> is created on
a <code><a href=#the-link-element>link</a></code> element that is already <a href=#in-a-document>in a <code>Document</code></a>.</li>

<li><p>When the <code title=attr-link-href><a href=#attr-link-href>href</a></code> attribute of the <code><a href=#the-link-element>link</a></code>
element of an <a href=#external-resource-link title="external resource link">external resource link</a> that is already
<a href=#in-a-document>in a <code>Document</code></a> is changed.</li>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2588 -->

</ul><p>If the resource is <a href=#the-link-is-an-alternative-stylesheet title="the link is an alternative stylesheet">an alternative
stylesheet</a> then the user agent may defer obtaining the resource until it is part of the
<a href=#preferred-style-sheet-set>preferred style sheet set</a>. <a href=#refsCSSOM>[CSSOM]</a></p> <!-- what about DOM
access of alt style sheets? -->

<p><strong>Quirk</strong>: If the document has been set to <a href=#quirks-mode>quirks mode</a>, has the
<a href=#same-origin>same origin</a> as the <a href=#url>URL</a> of the external resource<!-- CVE-2010-0654 -->,
Expand Down Expand Up @@ -81412,7 +81423,6 @@ worker.port.postMessage({ foo: 'structured', bar: ['data', 'also', 'possible']})
reference to that worker and communicate with it.</p>



<h4 id=the-global-scope><span class=secno>10.2.1 </span>The global scope</h4>

<p>The global scope is the "inside" of a worker.</p>
Expand Down
35 changes: 22 additions & 13 deletions source
Expand Up @@ -35596,13 +35596,28 @@ dictionary <dfn>TrackEventInit</dfn> : <span>EventInit</span> {

<div class="impl">

<p>The appropriate time to <span data-x="concept-link-obtain">obtain</span> the resource is when
the <span data-x="external resource link">external resource link</span> is created or when its
element is <span data-x="insert an element into a document">inserted into a document</span>,
whichever happens last. If the resource is <span data-x="the link is an alternative stylesheet">an
alternative stylesheet</span> then the user agent may defer obtaining the resource until it is
part of the <span>preferred style sheet set</span>. <a href="#refsCSSOM">[CSSOM]</a></p> <!-- what
about DOM access of alt style sheets? -->
<p>The appropriate times to <span data-x="concept-link-obtain">obtain</span> the resource are:

<ul>

<li><p>When the <span data-x="external resource link">external resource link</span>'s
<code>link</code> element is <span data-x="insert an element into a document">inserted into a
document</span>.</p></li>

<li><p>When the <span data-x="external resource link">external resource link</span> is created on
a <code>link</code> element that is already <span>in a <code>Document</code></span>.</p></li>

<li><p>When the <code data-x="attr-link-href">href</code> attribute of the <code>link</code>
element of an <span data-x="external resource link">external resource link</span> that is already
<span>in a <code>Document</code></span> is changed.</p></li>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2588 -->

</ul>

<p>If the resource is <span data-x="the link is an alternative stylesheet">an alternative
stylesheet</span> then the user agent may defer obtaining the resource until it is part of the
<span>preferred style sheet set</span>. <a href="#refsCSSOM">[CSSOM]</a></p> <!-- what about DOM
access of alt style sheets? -->

<p><strong>Quirk</strong>: If the document has been set to <span>quirks mode</span>, has the
<span>same origin</span> as the <span>URL</span> of the external resource<!-- CVE-2010-0654 -->,
Expand Down Expand Up @@ -90559,12 +90574,6 @@ worker.port.postMessage({ foo: 'structured', bar: ['data', 'also', 'possible']})
hand, are named, and once created any script running in the same <span>origin</span> can obtain a
reference to that worker and communicate with it.</p>

<!--END complete-->
<h4>Dependencies</h4>
<p>The <dfn><code>MessagePort</code></dfn> interface is defined in
the HTML specification. <a href="#refsHTML">[HTML]</a></p>
<!--START complete-->


<h4>The global scope</h4>

Expand Down

0 comments on commit a52801d

Please sign in to comment.