[html5] r8240 - [giow] (3) Make sure to define how rel=stylesheet should be reloaded if you chan [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Oct 23 15:07:14 PDT 2013


Author: ianh
Date: 2013-10-23 15:07:11 -0700 (Wed, 23 Oct 2013)
New Revision: 8240

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Make sure to define how rel=stylesheet should be reloaded if you change .href
Affected topics: DOM APIs, HTML, Workers

Modified: complete.html
===================================================================
--- complete.html	2013-10-23 18:48:35 UTC (rev 8239)
+++ complete.html	2013-10-23 22:07:11 UTC (rev 8240)
@@ -32752,14 +32752,25 @@
 
   <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 -->,
   and the <a href=#content-type title=Content-Type>Content-Type metadata</a> of the external resource is not a
@@ -81412,7 +81423,6 @@
   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>

Modified: index
===================================================================
--- index	2013-10-23 18:48:35 UTC (rev 8239)
+++ index	2013-10-23 22:07:11 UTC (rev 8240)
@@ -32752,14 +32752,25 @@
 
   <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 -->,
   and the <a href=#content-type title=Content-Type>Content-Type metadata</a> of the external resource is not a
@@ -81412,7 +81423,6 @@
   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>

Modified: source
===================================================================
--- source	2013-10-23 18:48:35 UTC (rev 8239)
+++ source	2013-10-23 22:07:11 UTC (rev 8240)
@@ -35596,14 +35596,29 @@
 
   <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 -->,
   and the <span data-x="Content-Type">Content-Type metadata</span> of the external resource is not a
@@ -90559,13 +90574,7 @@
   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>
 
   <p>The global scope is the "inside" of a worker.</p>




More information about the Commit-Watchers mailing list