[html5] r8392 - [giow] (3) Minor fixes for recent style loading checkin Affected topics: CSS, HTML

whatwg at whatwg.org whatwg at whatwg.org
Mon Jan 13 15:30:18 PST 2014


Author: ianh
Date: 2014-01-13 15:30:16 -0800 (Mon, 13 Jan 2014)
New Revision: 8392

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Minor fixes for recent style loading checkin
Affected topics: CSS, HTML

Modified: complete.html
===================================================================
--- complete.html	2014-01-13 23:12:56 UTC (rev 8391)
+++ complete.html	2014-01-13 23:30:16 UTC (rev 8392)
@@ -13895,8 +13895,10 @@
    <li><p>If <var title="">element</var> has an <a href=#associated-css-style-sheet>associated CSS style sheet</a>, <a href=#remove-a-css-style-sheet title="remove a CSS style sheet">remove the CSS style sheet</a> in question.</li>
 
    <li><p>If <var title="">element</var> is not <a href=#in-a-document>in a <code>Document</code></a>, then abort
-   these steps.</li>
+   these steps.</li> <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2740 -->
 
+   <!-- note that the browsing context isn't needed: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2739 -->
+
    <li>
 
     <p><a href=#create-a-css-style-sheet>Create a CSS style sheet</a> with the following properties:</p>
@@ -33224,15 +33226,20 @@
   <p>Once a resource has been <a href=#concept-link-obtain title=concept-link-obtain>obtained</a>, if its <a href=#content-type title=Content-Type>Content-Type metadata</a> is <code title="">text/css</code>, the user
   agent must run these steps:</p>
 
+  <!-- note that we can only get this far if we have a browsing context, since if you don't have a
+  browsing context (and are active) you can't ever get a result back from "fetch", and thus you
+  never obtain the sheet -->
+  <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2741 -->
+
   <ol><li><p>Let <var title="">element</var> be the <code><a href=#the-link-element>link</a></code> element that created the
    <a href=#external-resource-link>external resource link</a>.</li>
 
+   <li><p>If <var title="">element</var> has an <a href=#associated-css-style-sheet>associated CSS style sheet</a>, <a href=#remove-a-css-style-sheet title="remove a CSS style sheet">remove the CSS style sheet</a> in question.</li>
+
    <li><p>If <var title="">element</var> no longer creates an <a href=#external-resource-link>external resource link</a>
    that contributes to the styling processing model, or if, since the resource in question was <a href=#concept-link-obtain title=concept-link-obtain>obtained</a>, it has become appropriate to <a href=#concept-link-obtain title=concept-link-obtain>obtain</a> it again (meaning this algorithm is about to be
    invoked again for a newly obtained resource), then abort these steps.</li>
 
-   <li><p>If <var title="">element</var> has an <a href=#associated-css-style-sheet>associated CSS style sheet</a>, <a href=#remove-a-css-style-sheet title="remove a CSS style sheet">remove the CSS style sheet</a> in question.</li>
-
    <li>
 
     <p><a href=#create-a-css-style-sheet>Create a CSS style sheet</a> with the following properties:</p>

Modified: index
===================================================================
--- index	2014-01-13 23:12:56 UTC (rev 8391)
+++ index	2014-01-13 23:30:16 UTC (rev 8392)
@@ -13895,8 +13895,10 @@
    <li><p>If <var title="">element</var> has an <a href=#associated-css-style-sheet>associated CSS style sheet</a>, <a href=#remove-a-css-style-sheet title="remove a CSS style sheet">remove the CSS style sheet</a> in question.</li>
 
    <li><p>If <var title="">element</var> is not <a href=#in-a-document>in a <code>Document</code></a>, then abort
-   these steps.</li>
+   these steps.</li> <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2740 -->
 
+   <!-- note that the browsing context isn't needed: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2739 -->
+
    <li>
 
     <p><a href=#create-a-css-style-sheet>Create a CSS style sheet</a> with the following properties:</p>
@@ -33224,15 +33226,20 @@
   <p>Once a resource has been <a href=#concept-link-obtain title=concept-link-obtain>obtained</a>, if its <a href=#content-type title=Content-Type>Content-Type metadata</a> is <code title="">text/css</code>, the user
   agent must run these steps:</p>
 
+  <!-- note that we can only get this far if we have a browsing context, since if you don't have a
+  browsing context (and are active) you can't ever get a result back from "fetch", and thus you
+  never obtain the sheet -->
+  <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2741 -->
+
   <ol><li><p>Let <var title="">element</var> be the <code><a href=#the-link-element>link</a></code> element that created the
    <a href=#external-resource-link>external resource link</a>.</li>
 
+   <li><p>If <var title="">element</var> has an <a href=#associated-css-style-sheet>associated CSS style sheet</a>, <a href=#remove-a-css-style-sheet title="remove a CSS style sheet">remove the CSS style sheet</a> in question.</li>
+
    <li><p>If <var title="">element</var> no longer creates an <a href=#external-resource-link>external resource link</a>
    that contributes to the styling processing model, or if, since the resource in question was <a href=#concept-link-obtain title=concept-link-obtain>obtained</a>, it has become appropriate to <a href=#concept-link-obtain title=concept-link-obtain>obtain</a> it again (meaning this algorithm is about to be
    invoked again for a newly obtained resource), then abort these steps.</li>
 
-   <li><p>If <var title="">element</var> has an <a href=#associated-css-style-sheet>associated CSS style sheet</a>, <a href=#remove-a-css-style-sheet title="remove a CSS style sheet">remove the CSS style sheet</a> in question.</li>
-
    <li>
 
     <p><a href=#create-a-css-style-sheet>Create a CSS style sheet</a> with the following properties:</p>

Modified: source
===================================================================
--- source	2014-01-13 23:12:56 UTC (rev 8391)
+++ source	2014-01-13 23:30:16 UTC (rev 8392)
@@ -14463,8 +14463,10 @@
    data-x="remove a CSS style sheet">remove the CSS style sheet</span> in question.</p></li>
 
    <li><p>If <var data-x="">element</var> is not <span>in a <code>Document</code></span>, then abort
-   these steps.</p></li>
+   these steps.</p></li> <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2740 -->
 
+   <!-- note that the browsing context isn't needed: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2739 -->
+
    <li>
 
     <p><span>Create a CSS style sheet</span> with the following properties:</p>
@@ -36130,20 +36132,25 @@
   data-x="Content-Type">Content-Type metadata</span> is <code data-x="">text/css</code>, the user
   agent must run these steps:</p>
 
+  <!-- note that we can only get this far if we have a browsing context, since if you don't have a
+  browsing context (and are active) you can't ever get a result back from "fetch", and thus you
+  never obtain the sheet -->
+  <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2741 -->
+
   <ol>
 
    <li><p>Let <var data-x="">element</var> be the <code>link</code> element that created the
    <span>external resource link</span>.</p></li>
 
+   <li><p>If <var data-x="">element</var> has an <span>associated CSS style sheet</span>, <span
+   data-x="remove a CSS style sheet">remove the CSS style sheet</span> in question.</p></li>
+
    <li><p>If <var data-x="">element</var> no longer creates an <span>external resource link</span>
    that contributes to the styling processing model, or if, since the resource in question was <span
    data-x="concept-link-obtain">obtained</span>, it has become appropriate to <span
    data-x="concept-link-obtain">obtain</span> it again (meaning this algorithm is about to be
    invoked again for a newly obtained resource), then abort these steps.</p></li>
 
-   <li><p>If <var data-x="">element</var> has an <span>associated CSS style sheet</span>, <span
-   data-x="remove a CSS style sheet">remove the CSS style sheet</span> in question.</p></li>
-
    <li>
 
     <p><span>Create a CSS style sheet</span> with the following properties:</p>




More information about the Commit-Watchers mailing list