[html5] r8874 - [e] (0) Clarify what 'failed' means in importScripts(). Fixing https://www.w3.or [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jan 6 15:58:25 PST 2015


Author: ianh
Date: 2015-01-06 15:58:22 -0800 (Tue, 06 Jan 2015)
New Revision: 8874

Modified:
   complete.html
   index
   source
Log:
[e] (0) Clarify what 'failed' means in importScripts().
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=27276
Affected topics: DOM APIs, Workers

Modified: complete.html
===================================================================
--- complete.html	2015-01-06 23:33:59 UTC (rev 8873)
+++ complete.html	2015-01-06 23:58:22 UTC (rev 8874)
@@ -51305,7 +51305,7 @@
     <p>The <code id=pseudo-classes:selector-rtl><a href=#selector-rtl>:dir(rtl)</a></code> pseudo-class must match all elements whose
     <a href=#the-directionality id=pseudo-classes:the-directionality-2>directionality</a> is '<a href=#concept-rtl id=pseudo-classes:concept-rtl>rtl</a>'.</p>
 
-   </dl><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27245" title=":active should not match <input type=button disabled>">27245</a>, <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27247" title=":active should match the labeled control of a label element that is currently matching :active (like :hover)">27247</a></div>
+   </dl><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27245" title=":active should not match <input type=button disabled>">27245</a></div>
 
   <p class=note>Another section of this specification defines the <i id=pseudo-classes:target-element><a href=#target-element>target element</a></i> used with the <code id=pseudo-classes:selector-target><a href=#selector-target>:target</a></code>
   pseudo-class.</p>
@@ -70289,7 +70289,9 @@
 
       <p>Wait for the fetching attempt for the corresponding resource to complete.</p>
 
-      <p>If the fetching attempt failed, throw a <code id=importing-scripts-and-libraries:networkerror><a href=#networkerror>NetworkError</a></code> exception and abort all
+      <p>If the fetching attempt failed (e.g. the server
+      returned a 4xx or 5xx status code <a href=#concept-http-equivalent-codes id=importing-scripts-and-libraries:concept-http-equivalent-codes>or
+      equivalent</a>, or there was a DNS error), throw a <code id=importing-scripts-and-libraries:networkerror><a href=#networkerror>NetworkError</a></code> exception and abort all
       these steps.</p>
 
       <p>If the attempt succeeds, then let <var>source</var> be the result of running the

Modified: index
===================================================================
--- index	2015-01-06 23:33:59 UTC (rev 8873)
+++ index	2015-01-06 23:58:22 UTC (rev 8874)
@@ -51305,7 +51305,7 @@
     <p>The <code id=pseudo-classes:selector-rtl><a href=#selector-rtl>:dir(rtl)</a></code> pseudo-class must match all elements whose
     <a href=#the-directionality id=pseudo-classes:the-directionality-2>directionality</a> is '<a href=#concept-rtl id=pseudo-classes:concept-rtl>rtl</a>'.</p>
 
-   </dl><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27245" title=":active should not match <input type=button disabled>">27245</a>, <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27247" title=":active should match the labeled control of a label element that is currently matching :active (like :hover)">27247</a></div>
+   </dl><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27245" title=":active should not match <input type=button disabled>">27245</a></div>
 
   <p class=note>Another section of this specification defines the <i id=pseudo-classes:target-element><a href=#target-element>target element</a></i> used with the <code id=pseudo-classes:selector-target><a href=#selector-target>:target</a></code>
   pseudo-class.</p>
@@ -70289,7 +70289,9 @@
 
       <p>Wait for the fetching attempt for the corresponding resource to complete.</p>
 
-      <p>If the fetching attempt failed, throw a <code id=importing-scripts-and-libraries:networkerror><a href=#networkerror>NetworkError</a></code> exception and abort all
+      <p>If the fetching attempt failed (e.g. the server
+      returned a 4xx or 5xx status code <a href=#concept-http-equivalent-codes id=importing-scripts-and-libraries:concept-http-equivalent-codes>or
+      equivalent</a>, or there was a DNS error), throw a <code id=importing-scripts-and-libraries:networkerror><a href=#networkerror>NetworkError</a></code> exception and abort all
       these steps.</p>
 
       <p>If the attempt succeeds, then let <var>source</var> be the result of running the

Modified: source
===================================================================
--- source	2015-01-06 23:33:59 UTC (rev 8873)
+++ source	2015-01-06 23:58:22 UTC (rev 8874)
@@ -94765,7 +94765,9 @@
 
       <p>Wait for the fetching attempt for the corresponding resource to complete.</p>
 
-      <p>If the fetching attempt failed, throw a <code>NetworkError</code> exception and abort all
+      <p>If the fetching attempt failed (e.g. the server
+      returned a 4xx or 5xx status code <span data-x="concept-http-equivalent-codes">or
+      equivalent</span>, or there was a DNS error), throw a <code>NetworkError</code> exception and abort all
       these steps.</p>
 
       <p>If the attempt succeeds, then let <var>source</var> be the result of running the



More information about the Commit-Watchers mailing list