[html5] r5597 - [e] (0) add a note about script execution Fixing http://www.w3.org/Bugs/Public/s [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Oct 11 15:02:04 PDT 2010


Author: ianh
Date: 2010-10-11 15:02:02 -0700 (Mon, 11 Oct 2010)
New Revision: 5597

Modified:
   complete.html
   index
   source
Log:
[e] (0) add a note about script execution
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10539

Modified: complete.html
===================================================================
--- complete.html	2010-10-07 22:50:41 UTC (rev 5596)
+++ complete.html	2010-10-11 22:02:02 UTC (rev 5597)
@@ -214,7 +214,7 @@
 
   <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 — 7 October 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 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>-->
@@ -14612,6 +14612,26 @@
   <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>

Modified: index
===================================================================
--- index	2010-10-07 22:50:41 UTC (rev 5596)
+++ index	2010-10-11 22:02:02 UTC (rev 5597)
@@ -218,7 +218,7 @@
 
   <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 — 7 October 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 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>-->
@@ -14589,6 +14589,26 @@
   <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>

Modified: source
===================================================================
--- source	2010-10-07 22:50:41 UTC (rev 5596)
+++ source	2010-10-11 22:02:02 UTC (rev 5597)
@@ -15491,6 +15491,26 @@
   <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>




More information about the Commit-Watchers mailing list