html5/spec history.html,1.997,1.998 spec.html,1.1152,1.1153

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv3259

Modified Files:
	history.html spec.html 
Log Message:
history.back() should fire unload too. (whatwg r5313)

[updated by splitter]


Index: history.html
===================================================================
RCS file: /sources/public/html5/spec/history.html,v
retrieving revision 1.997
retrieving revision 1.998
diff -u -d -r1.997 -r1.998
--- history.html	11 Aug 2010 03:56:44 -0000	1.997
+++ history.html	20 Aug 2010 19:06:53 -0000	1.998
@@ -532,7 +532,7 @@
    <li><p>If the index of the <a href="#current-entry-of-the-joint-session-history">current entry of the joint session
    history</a> plus <var title="">delta</var> is less than zero or
    greater than or equal to the number of items in the <a href="#joint-session-history">joint
-   session history</a>, then the user agent must do nothing.</p>
+   session history</a>, then abort these steps.</p>
 
    </li><li><p>Let <var title="">specified entry</var> be the entry in the
    <a href="#joint-session-history">joint session history</a> whose index is the sum of <var title="">delta</var> and the index of the <a href="#current-entry-of-the-joint-session-history">current entry of
@@ -542,8 +542,15 @@
    <a href="browsers.html#browsing-context">browsing context</a> of the <var title="">specified
    entry</var>.</p></li>
 
-   <!-- XXX if going to another doc, try to unload the document here
-   (firing beforeunload, unload, pagehide) -->
+   <li><p><a href="#prompt-to-unload-a-document" title="prompt to unload a document">Prompt to
+   unload</a> the <a href="browsers.html#active-document">active document</a> of the <var title="">specified browsing context</var>. If the user
+   <a href="#refused-to-allow-the-document-to-be-unloaded">refused to allow the document to be unloaded</a>, then
+   abort these steps.</p></li>
+
+   <li><p><a href="#unload-a-document" title="unload a document">Unload</a> the the
+   <a href="browsers.html#active-document">active document</a> of the <var title="">specified
+   browsing context</var> with the <var title="">recycle</var>
+   parameter set to false.</p></li>
 
    <li><p><a href="#traverse-the-history">Traverse the history</a> of the <var title="">specified browsing context</var> to the <var title="">specified entry</var>.</p>
 
@@ -1084,6 +1091,15 @@
    <a href="browsers.html#browsing-context">browsing context</a>.</p></li>
    <!-- http://www.hixie.ch/tests/adhoc/html/navigation/unload/ -->
 
+   <li><p>If a <a href="webappapis.html#concept-task" title="concept-task">task</a> queued by the
+   <a href="#traverse-the-history-by-a-delta">traverse the history by a delta</a> algorithm is running
+   the <a href="#unload-a-document">unload a document</a> algorithm for the <a href="browsers.html#active-document">active
+   document</a> of the <a href="browsers.html#browsing-context">browsing context</a> being
+   navigated, then abort these steps without affecting the
+   <a href="#unload-a-document">unload a document</a> algorithm or the aforementioned
+   history traversal task.</p></li> <!-- this stops pages from
+   hijacking the back/forward button -->
+
    <li><p>If there is a preexisting attempt to navigate the
    <a href="browsers.html#browsing-context">browsing context</a>, and either that attempt has not yet
    <a href="#concept-navigate-mature" title="concept-navigate-mature">matured</a> (i.e. it has

Index: spec.html
===================================================================
RCS file: /sources/public/html5/spec/spec.html,v
retrieving revision 1.1152
retrieving revision 1.1153
diff -u -d -r1.1152 -r1.1153
--- spec.html	18 Aug 2010 01:36:41 -0000	1.1152
+++ spec.html	20 Aug 2010 19:06:53 -0000	1.1153
@@ -315,7 +315,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-18-august-2010">Editor's Draft 18 August 2010</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-20-august-2010">Editor's Draft 20 August 2010</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>
@@ -336,7 +336,7 @@
     <a href="Overview.html">single page HTML</a>,
     <a href="spec.html">multipage HTML</a>,
     <a href="author/">author edition</a>.
-This is revision 1.4234.
+This is revision 1.4235.
    </p> 
      <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a>
    &#169; 2010 <a href="http://www.w3.org/"><abbr title="World Wide
@@ -421,7 +421,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 18 August 2010 Editor's Draft.
+  This specification is the 20 August 2010 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

Received on Friday, 20 August 2010 19:06:57 UTC