hixie: Define that when you discard a document, it performs the cleanup steps. (whatwg r4709)

hixie: Define that when you discard a document, it performs the cleanup
steps. (whatwg r4709)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3759&r2=1.3760&f=h
http://html5.org/tools/web-apps-tracker?from=4708&to=4709

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3759
retrieving revision 1.3760
diff -u -d -r1.3759 -r1.3760
--- Overview.html 14 Feb 2010 03:24:05 -0000 1.3759
+++ Overview.html 14 Feb 2010 03:26:58 -0000 1.3760
@@ -39650,16 +39650,26 @@
   objects.</p>
 
   <p>When a <a href="#browsing-context">browsing context</a> is to <dfn id="discard-a-document">discard a
-  <code>Document</code></dfn>, that means that it is to lose the
-  strong reference from the <code>Document</code>'s <a href="#browsing-context">browsing
-  context</a> to the <code>Document</code>, that 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> must be
-  removed without being run, and that all the <a href="#child-browsing-context" title="child
-  browsing context">child browsing contexts</a> of the
-  <code>Document</code> must also be <a href="#a-browsing-context-is-discarded" title="a browsing context
-  is discarded">discarded</a>.</p>
+  <code>Document</code></dfn>, the user agent must run the following
+  steps:</p>
 
-  <p class="note">The <a href="#browsing-context">browsing context</a>'s <a href="#default-view">default
+  <ol><li><p>Run any <a href="#unloading-document-cleanup-steps">unloading document cleanup steps</a> for
+   the <code>Document</code> that are defined by this specification or
+   any other relevant specifications.</li>
+
+   <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>, without running those tasks.</li>
+
+   <li><p><a href="#a-browsing-context-is-discarded" title="a browsing context is discarded">Discard</a>
+   all the <a href="#child-browsing-context" title="child browsing context">child browsing
+   contexts</a> of the <code>Document</code>.</li>
+
+   <li><p>Lose the strong reference from the <code>Document</code>'s
+   <a href="#browsing-context">browsing context</a> to the
+   <code>Document</code>.</li>
+
+  </ol><p class="note">The <a href="#browsing-context">browsing context</a>'s <a href="#default-view">default
   view</a>'s <code><a href="#window">Window</a></code> object <a href="#implied-strong-reference" title="implied strong
   reference">has a strong reference</a> to its
   <code>Document</code> object through the <code title="dom-document">document</code> attribute of the

Received on Sunday, 14 February 2010 03:27:39 UTC