[html5] r7950 - [giow] (3) Bring the 'microtask checkpoint' invocation at the end of scripts mor [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Jun 10 13:53:00 PDT 2013


Author: ianh
Date: 2013-06-10 13:52:58 -0700 (Mon, 10 Jun 2013)
New Revision: 7950

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Bring the 'microtask checkpoint' invocation at the end of scripts more into line with implementations, and unrelated editorial fixes.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=22185
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2013-06-08 00:13:55 UTC (rev 7949)
+++ complete.html	2013-06-10 20:52:58 UTC (rev 7950)
@@ -256,7 +256,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 8 June 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 10 June 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -43247,7 +43247,7 @@
   the Default Unicode Collation Element Table as customized for the <a href=#language>language</a> of the
   element <var title="">e</var> in the Common Locale Data Repository, to the strings <var title="">a</var> and <var title="">b</var>, ignoring case. If the result of this algorithm places
   <var title="">a</var> first, then return "a before b"; if it places <var title="">b</var> first,
-  then return "b before a"; otherwise, if they compare as equal, then return "equal". <a href=#refsUCA>[UCA]</a> <a href=#CLDR>[CLDR]</a></p>
+  then return "b before a"; otherwise, if they compare as equal, then return "equal". <a href=#refsUCA>[UCA]</a> <a href=#refsCLDR>[CLDR]</a></p>
 
   <p>When the user agent is required by the step above to perform a <dfn id=raw-string-comparison>raw string comparison</dfn>
   of two strings <var title="">a</var> and <var title="">b</var>, the user agent must apply the
@@ -70895,10 +70895,11 @@
    started (possibly nothing).</li>
 
    <li><p>If there is no longer an <a href=#entry-script>entry script</a>, <a href=#run-the-global-script-clean-up-jobs>run the global script clean-up
-   jobs</a>.</li>
+   jobs</a>. (These cannot run scripts.)</li>
 
-   <li><p><a href=#perform-a-microtask-checkpoint>Perform a microtask checkpoint</a>. (If this runs scripts, it will result in this
-   algorithm being invoked reentrantly.)</li>
+   <li><p>If there is no longer an <a href=#entry-script>entry script</a>, <a href=#perform-a-microtask-checkpoint>perform a microtask
+   checkpoint</a>. (If this runs scripts, it will result in this algorithm being invoked
+   reentrantly.)</li>
 
   </ol><p>This algorithm is not invoked by one script directly calling another, but it can be invoked
   reentrantly in an indirect manner, e.g. if a script dispatches an event which has event listeners
@@ -70919,7 +70920,9 @@
   scripting environment"><a href=#mutationobserver-scripting-environment>scripting environment</a></var>.</p>
 
   <p>Each <a href=#unit-of-related-similar-origin-browsing-contexts>unit of related similar-origin browsing contexts</a> has a <dfn id=global-script-clean-up-jobs-list>global script
-  clean-up jobs list</dfn>, which must initially be empty. The File API uses this to release <code title="">blob:</code> URLs. <a href=#refsFILEAPI>[FILEAPI]</a></p>
+  clean-up jobs list</dfn>, which must initially be empty. A global script clean-up job cannot run
+  scripts, and cannot be sensitive to the order in which other clean-up jobs are executed. The File
+  API uses this to release <code title="">blob:</code> URLs. <a href=#refsFILEAPI>[FILEAPI]</a></p>
 
   <p>When the user agent is to <dfn id=run-the-global-script-clean-up-jobs>run the global script clean-up jobs</dfn>, the user agent must
   perform each of the jobs in the <a href=#global-script-clean-up-jobs-list>global script clean-up jobs list</a> and then empty the

Modified: index
===================================================================
--- index	2013-06-08 00:13:55 UTC (rev 7949)
+++ index	2013-06-10 20:52:58 UTC (rev 7950)
@@ -256,7 +256,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 8 June 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 10 June 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -43247,7 +43247,7 @@
   the Default Unicode Collation Element Table as customized for the <a href=#language>language</a> of the
   element <var title="">e</var> in the Common Locale Data Repository, to the strings <var title="">a</var> and <var title="">b</var>, ignoring case. If the result of this algorithm places
   <var title="">a</var> first, then return "a before b"; if it places <var title="">b</var> first,
-  then return "b before a"; otherwise, if they compare as equal, then return "equal". <a href=#refsUCA>[UCA]</a> <a href=#CLDR>[CLDR]</a></p>
+  then return "b before a"; otherwise, if they compare as equal, then return "equal". <a href=#refsUCA>[UCA]</a> <a href=#refsCLDR>[CLDR]</a></p>
 
   <p>When the user agent is required by the step above to perform a <dfn id=raw-string-comparison>raw string comparison</dfn>
   of two strings <var title="">a</var> and <var title="">b</var>, the user agent must apply the
@@ -70895,10 +70895,11 @@
    started (possibly nothing).</li>
 
    <li><p>If there is no longer an <a href=#entry-script>entry script</a>, <a href=#run-the-global-script-clean-up-jobs>run the global script clean-up
-   jobs</a>.</li>
+   jobs</a>. (These cannot run scripts.)</li>
 
-   <li><p><a href=#perform-a-microtask-checkpoint>Perform a microtask checkpoint</a>. (If this runs scripts, it will result in this
-   algorithm being invoked reentrantly.)</li>
+   <li><p>If there is no longer an <a href=#entry-script>entry script</a>, <a href=#perform-a-microtask-checkpoint>perform a microtask
+   checkpoint</a>. (If this runs scripts, it will result in this algorithm being invoked
+   reentrantly.)</li>
 
   </ol><p>This algorithm is not invoked by one script directly calling another, but it can be invoked
   reentrantly in an indirect manner, e.g. if a script dispatches an event which has event listeners
@@ -70919,7 +70920,9 @@
   scripting environment"><a href=#mutationobserver-scripting-environment>scripting environment</a></var>.</p>
 
   <p>Each <a href=#unit-of-related-similar-origin-browsing-contexts>unit of related similar-origin browsing contexts</a> has a <dfn id=global-script-clean-up-jobs-list>global script
-  clean-up jobs list</dfn>, which must initially be empty. The File API uses this to release <code title="">blob:</code> URLs. <a href=#refsFILEAPI>[FILEAPI]</a></p>
+  clean-up jobs list</dfn>, which must initially be empty. A global script clean-up job cannot run
+  scripts, and cannot be sensitive to the order in which other clean-up jobs are executed. The File
+  API uses this to release <code title="">blob:</code> URLs. <a href=#refsFILEAPI>[FILEAPI]</a></p>
 
   <p>When the user agent is to <dfn id=run-the-global-script-clean-up-jobs>run the global script clean-up jobs</dfn>, the user agent must
   perform each of the jobs in the <a href=#global-script-clean-up-jobs-list>global script clean-up jobs list</a> and then empty the

Modified: source
===================================================================
--- source	2013-06-08 00:13:55 UTC (rev 7949)
+++ source	2013-06-10 20:52:58 UTC (rev 7950)
@@ -47284,7 +47284,7 @@
   title="">a</var> and <var title="">b</var>, ignoring case. If the result of this algorithm places
   <var title="">a</var> first, then return "a before b"; if it places <var title="">b</var> first,
   then return "b before a"; otherwise, if they compare as equal, then return "equal". <a
-  href="#refsUCA">[UCA]</a> <a href="#CLDR">[CLDR]</a></p>
+  href="#refsUCA">[UCA]</a> <a href="#refsCLDR">[CLDR]</a></p>
 
   <p>When the user agent is required by the step above to perform a <dfn>raw string comparison</dfn>
   of two strings <var title="">a</var> and <var title="">b</var>, the user agent must apply the
@@ -79252,10 +79252,11 @@
    started (possibly nothing).</p></li>
 
    <li><p>If there is no longer an <span>entry script</span>, <span>run the global script clean-up
-   jobs</span>.</p></li>
+   jobs</span>. (These cannot run scripts.)</p></li>
 
-   <li><p><span>Perform a microtask checkpoint</span>. (If this runs scripts, it will result in this
-   algorithm being invoked reentrantly.)</p></li>
+   <li><p>If there is no longer an <span>entry script</span>, <span>perform a microtask
+   checkpoint</span>. (If this runs scripts, it will result in this algorithm being invoked
+   reentrantly.)</p></li>
 
   </ol>
 
@@ -79280,8 +79281,10 @@
   scripting environment">scripting environment</var>.</p>
 
   <p>Each <span>unit of related similar-origin browsing contexts</span> has a <dfn>global script
-  clean-up jobs list</dfn>, which must initially be empty. The File API uses this to release <code
-  title="">blob:</code> URLs. <a href="#refsFILEAPI">[FILEAPI]</a></p>
+  clean-up jobs list</dfn>, which must initially be empty. A global script clean-up job cannot run
+  scripts, and cannot be sensitive to the order in which other clean-up jobs are executed. The File
+  API uses this to release <code title="">blob:</code> URLs. <a
+  href="#refsFILEAPI">[FILEAPI]</a></p>
 
   <p>When the user agent is to <dfn>run the global script clean-up jobs</dfn>, the user agent must
   perform each of the jobs in the <span>global script clean-up jobs list</span> and then empty the




More information about the Commit-Watchers mailing list