Skip to content
Permalink
Browse files

[e] (0) add a note about script execution

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10539

git-svn-id: http://svn.whatwg.org/webapps@5597 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Oct 11, 2010
1 parent f2311db commit aa36d148c180d0e3bf7878d558769c98aef13db9
Showing with 62 additions and 2 deletions.
  1. +21 −1 complete.html
  2. +21 −1 index
  3. +20 −0 source

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 7 October 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 11 October 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
<code><a href=#document>Document</a></code> is used by the <code><a href=#document>Document</a></code>'s
parser(s).</p>

<p class=note>If a <code><a href=#script>script</a></code> element that blocks a
parser gets moved to another <code><a href=#document>Document</a></code> before it would
normally have stopped blocking that parser, it nonetheless continues
blocking that parser until the condition that causes it to be
blocking the parser no longer applies (e.g. if the script is a
<a href=#pending-parsing-blocking-script>pending parsing-blocking script</a> because there was
<a href=#a-style-sheet-that-is-blocking-scripts>a style sheet that is blocking scripts</a> when it was
parsed, but then the script is moved to another
<code><a href=#document>Document</a></code> before the style sheet loads, the script still
blocks the parser until the style sheets are all loaded, at which
time the script executes and the parser is unblocked).</p>

<!-- also (and this would be worth testing): the way the spec is
written, if you do not have a style sheet that is blocking scripts,
then you parse a <script src>, then while waiting for the script to
load you insert an external style sheet, the script will delay until
the sheet is loaded, because there's just a binary "are style sheets
blocking scripts" state, things aren't defined in terms of which
style sheets are blocking which scripts -->

<p><dfn id=executing-a-script-block title="executing a script block">Executing a script
block</dfn>: When the steps above require that the script block be
executed, the user agent must act as follows:</p>
22 index

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>HTML5 (including next generation additions still in development)</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 7 October 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 11 October 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
<code><a href=#document>Document</a></code> is used by the <code><a href=#document>Document</a></code>'s
parser(s).</p>

<p class=note>If a <code><a href=#script>script</a></code> element that blocks a
parser gets moved to another <code><a href=#document>Document</a></code> before it would
normally have stopped blocking that parser, it nonetheless continues
blocking that parser until the condition that causes it to be
blocking the parser no longer applies (e.g. if the script is a
<a href=#pending-parsing-blocking-script>pending parsing-blocking script</a> because there was
<a href=#a-style-sheet-that-is-blocking-scripts>a style sheet that is blocking scripts</a> when it was
parsed, but then the script is moved to another
<code><a href=#document>Document</a></code> before the style sheet loads, the script still
blocks the parser until the style sheets are all loaded, at which
time the script executes and the parser is unblocked).</p>

<!-- also (and this would be worth testing): the way the spec is
written, if you do not have a style sheet that is blocking scripts,
then you parse a <script src>, then while waiting for the script to
load you insert an external style sheet, the script will delay until
the sheet is loaded, because there's just a binary "are style sheets
blocking scripts" state, things aren't defined in terms of which
style sheets are blocking which scripts -->

<p><dfn id=executing-a-script-block title="executing a script block">Executing a script
block</dfn>: When the steps above require that the script block be
executed, the user agent must act as follows:</p>
20 source
<code>Document</code> is used by the <code>Document</code>'s
parser(s).</p>

<p class="note">If a <code>script</code> element that blocks a
parser gets moved to another <code>Document</code> before it would
normally have stopped blocking that parser, it nonetheless continues
blocking that parser until the condition that causes it to be
blocking the parser no longer applies (e.g. if the script is a
<span>pending parsing-blocking script</span> because there was
<span>a style sheet that is blocking scripts</span> when it was
parsed, but then the script is moved to another
<code>Document</code> before the style sheet loads, the script still
blocks the parser until the style sheets are all loaded, at which
time the script executes and the parser is unblocked).</p>

<!-- also (and this would be worth testing): the way the spec is
written, if you do not have a style sheet that is blocking scripts,
then you parse a <script src>, then while waiting for the script to
load you insert an external style sheet, the script will delay until
the sheet is loaded, because there's just a binary "are style sheets
blocking scripts" state, things aren't defined in terms of which
style sheets are blocking which scripts -->

<p><dfn title="executing a script block">Executing a script
block</dfn>: When the steps above require that the script block be
executed, the user agent must act as follows:</p>

0 comments on commit aa36d14

Please sign in to comment.
You can’t perform that action at this time.