- From: poot <cvsmail@w3.org>
- Date: Sun, 14 Feb 2010 12:24:26 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Factor out the cleanup steps so they can be reused from other algorithms. (whatwg r4708) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3758&r2=1.3759&f=h http://html5.org/tools/web-apps-tracker?from=4707&to=4708 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3758 retrieving revision 1.3759 diff -u -d -r1.3758 -r1.3759 --- Overview.html 13 Feb 2010 13:50:30 -0000 1.3758 +++ Overview.html 14 Feb 2010 03:24:05 -0000 1.3759 @@ -281,7 +281,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-13-february-2010">Editor's Draft 13 February 2010</h2> + <h2 class="no-num no-toc" id="editor-s-draft-14-february-2010">Editor's Draft 14 February 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> @@ -389,7 +389,7 @@ specification's progress along the W3C Recommendation track. - This specification is the 13 February 2010 Editor's Draft. + This specification is the 14 February 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>This specification is part of <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/">a larger specification</a> being produced by the <a href="http://www.whatwg.org/">WHATWG</a>, which is available under a license that permits reuse of the specification text.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><!-- (this text is from the RDFa+HTML spec --><p>This specification is an extension to the HTML5 language. All @@ -41981,7 +41981,7 @@ <p>A <code>Document</code> has a <var title="">salvageable</var> state, which is initially true.</p> - <hr><p>When a user agent is to <dfn id="prompt-to-unload-a-document">prompt to unload a document</dfn>, + <p>When a user agent is to <dfn id="prompt-to-unload-a-document">prompt to unload a document</dfn>, it must run the following steps.</p> <ol><li><p>Let <var title="">event</var> be a new @@ -42047,7 +42047,7 @@ </ol></li> - </ol><hr><p>When a user agent is to <dfn id="unload-a-document">unload a document</dfn>, it must run + </ol><p>When a user agent is to <dfn id="unload-a-document">unload a document</dfn>, it must run the following steps. These steps are passed an argument, <var title="">recycle</var>, which is either true or false, indicating whether the <code>Document</code> object is going to be re-used. (This is set by the <code title="dom-document-open"><a href="#dom-document-open">document.open()</a></code> method.)</p> @@ -42065,25 +42065,9 @@ <i>unload event</i> step, then set the <code>Document</code> object's <var title="">salvageable</var> state to false.</li> - <li><p>If there are any outstanding transactions that have - callbacks that involve <a href="#concept-script" title="concept-script">scripts</a> - whose <a href="#script-s-global-object" title="script's global object">global object</a> is - the <code>Document</code>'s <code><a href="#window">Window</a></code> object, roll them - back (without invoking any of the callbacks) and set <var title="">salvageable</var> to false.</p> - - <li><p>Empty the <code>Document</code>'s <code><a href="#window">Window</a></code>'s - <a href="#list-of-active-timeouts">list of active timeouts</a> and its <a href="#list-of-active-intervals">list of active - intervals</a>.</li> <!-- should this affect var - title="">salvageable</var>? --> - - <li><p><span>Close the Web Socket connection</span> of any - <code>WebSocket</code> objects that were created by the <code title="dom-WebSocket">WebSocket()</code> constructor visible on the - <code>Document</code>'s <code><a href="#window">Window</a></code> object. If this - affected any <code>WebSocket</code> objects, set <var title="">salvageable</var> to false.</li> - - <li><p>Run any <dfn id="unloading-document-cleanup-steps">unloading document cleanup steps</dfn> for - <code>Document</code> that are defined by any other relevant - specifications.</li> + <li><p>Run any <a href="#unloading-document-cleanup-steps">unloading document cleanup steps</a> for + <code>Document</code> that are defined by this specification or any + other relevant specifications.</li> <li><p>If this algorithm was invoked by another instance of the "unload a document" algorithm (i.e. through the steps below that @@ -42116,6 +42100,31 @@ <code>Document</code>'s <a href="#browsing-context">browsing context</a> must <a href="#discard-a-document" title="discard a document">discard the <code>Document</code></a>.</li> + </ol><p>This specification defines the following <dfn id="unloading-document-cleanup-steps">unloading document + cleanup steps</dfn>. Other specifications can define more.</p> + + <ol><li><p>Empty the <code>Document</code>'s <code><a href="#window">Window</a></code>'s + <a href="#list-of-active-timeouts">list of active timeouts</a> and its <a href="#list-of-active-intervals">list of active + intervals</a>.</li> <!-- XXX Should this affect <var + title="">salvageable</var>? Should it happen at all? --> + + <li><p>If there are any outstanding transactions that have + callbacks that involve <a href="#concept-script" title="concept-script">scripts</a> + whose <a href="#script-s-global-object" title="script's global object">global object</a> is + the <code>Document</code>'s <code><a href="#window">Window</a></code> object, roll them + back (without invoking any of the callbacks) and set <var title="">salvageable</var> to false. + <a href="#refsWEBSQL">[WEBSQL]</a> + </li> + + <li><p><span>Close the Web Socket connection</span> of any + <code>WebSocket</code> objects that were created by the <code title="dom-WebSocket">WebSocket()</code> constructor visible on the + <code>Document</code>'s <code><a href="#window">Window</a></code> object. If this + affected any <code>WebSocket</code> objects, set <var title="">salvageable</var> to false. + + <a href="#refsWEBSOCKET">[WEBSOCKET]</a> + + </li> + </ol><h5 id="event-definition"><span class="secno">5.5.10.1 </span>Event definition</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p> </div><pre class="idl">interface <dfn id="beforeunloadevent">BeforeUnloadEvent</dfn> : Event { @@ -67605,6 +67614,10 @@ addresses in HTML5</a></cite>, D. Connolly, C. Sperberg-McQueen.</dd> + <dt id="refsWEBSQL">[WEBSQL]</dt> + <dd><cite><a href="http://dev.w3.org/html5/webdatabase/">Web SQL + Database</a></cite>, I. Hickson. W3C.</dd> + <dt id="refsWEBIDL">[WEBIDL]</dt> <!-- <dd><cite><a href="http://www.w3.org/TR/WebIDL/">Web @@ -67617,6 +67630,14 @@ <dd><cite><a href="http://tools.ietf.org/html/draft-nottingham-http-link-header">Web Linking</a></cite>, M. Nottingham. IETF.</dd> + <dt id="refsWEBSOCKET">[WEBSOCKET]</dt> + <!-- + <dd><cite><a href="http://www.w3.org/TR/websockets/">The Web Sockets + API</a></cite>, I. Hickson. W3C.</dd> + --> + <dd><cite><a href="http://dev.w3.org/html5/websockets/">The Web Sockets + API</a></cite>, I. Hickson. W3C.</dd> + <dt id="refsWHATWGWIKI">[WHATWGWIKI]</dt> <dd><cite><a href="http://wiki.whatwg.org/">The WHATWG Wiki</a></cite>. WHATWG.</dd>
Received on Sunday, 14 February 2010 03:24:54 UTC