Skip to content

Commit

Permalink
[giow] (3) Bring the 'microtask checkpoint' invocation at the end of …
Browse files Browse the repository at this point in the history
…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

git-svn-id: http://svn.whatwg.org/webapps@7950 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 10, 2013
1 parent 5a3d1f0 commit 1c37c98
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
15 changes: 9 additions & 6 deletions complete.html
Expand Up @@ -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 &mdash; Last Updated 8 June 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -43247,7 +43247,7 @@ <h4 id=table-sorting-model><span class=secno>4.9.13 </span><dfn>Table sorting mo
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
Expand Down Expand Up @@ -70895,10 +70895,11 @@ <h5 id=calling-scripts><span class=secno>7.1.3.2 </span>Calling scripts</h5>
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
Expand All @@ -70919,7 +70920,9 @@ <h5 id=calling-scripts><span class=secno>7.1.3.2 </span>Calling scripts</h5>
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
Expand Down
15 changes: 9 additions & 6 deletions index
Expand Up @@ -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 &mdash; Last Updated 8 June 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -43247,7 +43247,7 @@ the cell that corresponds to the values of the two dice.
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
Expand Down Expand Up @@ -70895,10 +70895,11 @@ interface <dfn id=navigatoronline>NavigatorOnLine</dfn> {
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
Expand All @@ -70919,7 +70920,9 @@ interface <dfn id=navigatoronline>NavigatorOnLine</dfn> {
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
Expand Down
15 changes: 9 additions & 6 deletions source
Expand Up @@ -47284,7 +47284,7 @@ the cell that corresponds to the values of the two dice.
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
Expand Down Expand Up @@ -79252,10 +79252,11 @@ interface <dfn>NavigatorOnLine</dfn> {
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>

Expand All @@ -79280,8 +79281,10 @@ interface <dfn>NavigatorOnLine</dfn> {
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
Expand Down

0 comments on commit 1c37c98

Please sign in to comment.