Make document.open() handle timeouts and database transactions more cleanly. (whatwg r3260)

Make document.open() handle timeouts and database transactions more
cleanly. (whatwg r3260)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2407&r2=1.2408&f=h
http://html5.org/tools/web-apps-tracker?from=3259&to=3260

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2407
retrieving revision 1.2408
diff -u -d -r1.2407 -r1.2408
--- Overview.html 15 Jun 2009 22:30:51 -0000 1.2407
+++ Overview.html 15 Jun 2009 22:55:13 -0000 1.2408
@@ -7528,20 +7528,6 @@
    document to be unloaded</a>, then these steps must be
    aborted.</li>
 
-   <!-- XXX should some task sources be emptied here? e.g. what about
-   timeouts that fired after this algorithm started but before the
-   list of timeouts was cleared in the previous step? or database
-   transaction callbacks that were queued after the task that started
-   this algorithm?
-
-   This is what the 'discard a document' algorithm does:
-
-     "any <span title="concept-task">tasks</span> associated with the
-     <code>Document</code> in any <span>task source</span> must be
-     removed without being run"
-
-    -->
-
    <li><p>If the document has an <a href="#active-parser">active parser</a>, then
    abort that parser, and throw away any pending content in the input
    stream. <span class="XXX">what about if it doesn't, because it's
@@ -7552,6 +7538,12 @@
    <li><p>Unregister all event listeners registered on the
    <code>Document</code> node and its descendants.</p>
 
+   <li><p>Remove any <a href="#concept-task" title="concept-task">tasks</a>
+   associated with the <code>Document</code> in any <a href="#task-source">task
+   source</a>.</li> <!-- removes callbacks that fired between
+   this algorithm starting and the times and databases being aborted
+   in the "unload" step above -->
+
    <li><p>Remove all child nodes of the document, without firing any
    mutation events.</li> <!-- as of 2009-03-30, only WebKit fired
    mutation events here. -->

Received on Monday, 15 June 2009 22:56:02 UTC