hixie: Make sure the history is updated before scripts run. (whatwg r4110)

hixie: Make sure the history is updated before scripts run. (whatwg
r4110)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3268&r2=1.3269&f=h
http://html5.org/tools/web-apps-tracker?from=4109&to=4110

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3268
retrieving revision 1.3269
diff -u -d -r1.3268 -r1.3269
--- Overview.html 12 Oct 2009 05:40:08 -0000 1.3268
+++ Overview.html 12 Oct 2009 05:44:29 -0000 1.3269
@@ -47334,9 +47334,10 @@
   which eventually causes a <code title="event-load">load</code> event
   to be fired.</p>
 
-  <p>After creating the <code>Document</code> object, but potentially
-  before the page has finished parsing, the user agent must
-  <a href="#update-the-session-history-with-the-new-page">update the session history with the new page</a>.</p>
+  <p>After creating the <code>Document</code> object, but before any
+  script execution, certainly before the parser <a href="#stop-parsing" title="stop
+  parsing">stops</a>, the user agent must <a href="#update-the-session-history-with-the-new-page">update the session
+  history with the new page</a>.</p>
 
   <p class="note"><a href="#concept-appcache-init" title="concept-appcache-init">Application
   cache selection</a> happens <a href="#parser-appcache">in the
@@ -47393,7 +47394,8 @@
   <p>Otherwise, then, with the newly created <code>Document</code>,
   the user agents must <a href="#update-the-session-history-with-the-new-page">update the session history with the new
   page</a>. User agents may do this before the complete document
-  has been parsed (thus achieving <i>incremental rendering</i>).</p>
+  has been parsed (thus achieving <i>incremental rendering</i>), and
+  must do this before any scripts are to be executed.</p>
 
   <p>Error messages from the parse process (e.g. XML namespace
   well-formedness errors) may be reported inline by mutating the

Received on Monday, 12 October 2009 05:45:15 UTC