hixie: Make sure that all synchronous sections run before <script> elements, so that a <script> following a <video> has a state that doesn't depend on whether the browser splits up its parser tasks. (whatwg r5905)

hixie: Make sure that all synchronous sections run before <script>
elements, so that a <script> following a <video> has a state that
doesn't depend on whether the browser splits up its parser tasks.
(whatwg r5905)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4744&r2=1.4745&f=h
http://html5.org/tools/web-apps-tracker?from=5904&to=5905

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4744
retrieving revision 1.4745
diff -u -d -r1.4744 -r1.4745
--- Overview.html 17 Feb 2011 02:23:39 -0000 1.4744
+++ Overview.html 18 Feb 2011 22:36:56 -0000 1.4745
@@ -343,7 +343,7 @@
 
    <h1>HTML5</h1>
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-17-february-2011">Editor's Draft 17 February 2011</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-18-february-2011">Editor's Draft 18 February 2011</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -478,7 +478,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 17 February 2011 Editor's Draft.
+  This specification is the 18 February 2011 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
   actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
   group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- required patent boilerplate --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
@@ -48303,16 +48303,7 @@
 
    <li><p>Remove that task from its <a href="#task-queue">task queue</a>.</li>
 
-   <li><p>If any asynchronously-running algorithms are <dfn id="await-a-stable-state" title="await a stable state">awaiting a stable state</dfn>, then
-   run their <dfn id="synchronous-section">synchronous section</dfn> and then resume running
-   their asynchronous algorithm.</p>
-
-   <p class="note">A <a href="#synchronous-section">synchronous section</a> never mutates
-   the DOM, runs any script, or has any other side-effects.</p>
-
-   <p class="note">Steps in <a href="#synchronous-section" title="synchronous
-   section">synchronous sections</a> are marked with
-   &#8987;.</li>
+   <li><p><a href="#provide-a-stable-state">Provide a stable state</a>.</li>
 
    <li><p>If necessary, update the rendering or user interface of any
    <code><a href="#document">Document</a></code> or <a href="#browsing-context">browsing context</a> to reflect
@@ -48321,7 +48312,19 @@
    <li><p>Return to the first step of the <a href="#event-loop">event
    loop</a>.</li>
 
-  </ol><hr><p>When an algorithm says to <dfn id="spin-the-event-loop">spin the event loop</dfn> until
+  </ol><hr><p>When the user agent is to <dfn id="provide-a-stable-state">provide a stable state</dfn>, if
+  any asynchronously-running algorithms are <dfn id="await-a-stable-state" title="await a stable
+  state">awaiting a stable state</dfn>, then the user agent must run
+  their <dfn id="synchronous-section">synchronous section</dfn> and then resume running their
+  asynchronous algorithm (if appopriate).</p>
+
+  <p class="note">A <a href="#synchronous-section">synchronous section</a> never mutates
+  the DOM, runs any script, or has any other side-effects.</p>
+
+  <p class="note">Steps in <a href="#synchronous-section" title="synchronous
+  section">synchronous sections</a> are marked with &#8987;.</p>
+
+  <hr><p>When an algorithm says to <dfn id="spin-the-event-loop">spin the event loop</dfn> until
   a condition <var title="">goal</var> is met, the user agent must run
   the following steps:</p>
 
@@ -60599,6 +60602,8 @@
    <dt id="scriptEndTag">An end tag whose tag name is "script"</dt>
    <dd>
 
+    <p><a href="#provide-a-stable-state">Provide a stable state</a>.</p>
+
     <p>Let <var title="">script</var> be the <a href="#current-node">current node</a>
     (which will be a <code><a href="#script">script</a></code> element).</p>
 
@@ -63139,10 +63144,11 @@
   flag must be unset. If the parser was originally created for the
   <a href="#xml-fragment-parsing-algorithm">XML fragment parsing algorithm</a>, then the element must
   be marked as <a href="#already-started">"already started"</a> also. When the element's
-  end tag is parsed, the user agent must <a href="#prepare-a-script" title="prepare a
-  script">prepare</a> the <code><a href="#script">script</a></code> element. If this
-  causes there to be a <a href="#pending-parsing-blocking-script">pending parsing-blocking script</a>,
-  then the user agent must run the following steps:</p>
+  end tag is parsed, the user agent must <a href="#provide-a-stable-state">provide a stable
+  state</a>, and then <a href="#prepare-a-script" title="prepare a script">prepare</a>
+  the <code><a href="#script">script</a></code> element. If this causes there to be a
+  <a href="#pending-parsing-blocking-script">pending parsing-blocking script</a>, then the user agent
+  must run the following steps:</p>
 
   <ol><li><p>Block this instance of the <a href="#xml-parser">XML parser</a>, such
    that the <a href="#event-loop">event loop</a> will not run <a href="#concept-task" title="concept-task">tasks</a> that invoke it.</li>

Received on Friday, 18 February 2011 22:38:13 UTC