html5/spec Overview.html,1.5072,1.5073

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

Modified Files:
	Overview.html 
Log Message:
Attempt to spec the subtlties of window.print(). (whatwg r6350)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5072
retrieving revision 1.5073
diff -u -d -r1.5072 -r1.5073
--- Overview.html	2 Aug 2011 22:19:27 -0000	1.5072
+++ Overview.html	2 Aug 2011 23:14:49 -0000	1.5073
@@ -7451,7 +7451,9 @@
   document's current address</a> in their user interface.<p>When a <code><a href="#document">Document</a></code> is created by a <a href="#concept-script" title="concept-script">script</a> using the <code title="dom-DOMImplementation-createDocument"><a href="#dom-domimplementation-createdocument">createDocument()</a></code>
   or <code title="dom-DOMHTMLImplementation-createHTMLDocument">createHTMLDocument()</code>
   APIs, <a href="#the-document-s-address">the document's address</a> is the same as <a href="#the-document-s-address">the
-  document's address</a> of the <a href="#script-s-document">script's document</a>.<p>Each <code><a href="#document">Document</a></code> object has a <dfn id="reload-override-flag">reload override
+  document's address</a> of the <a href="#script-s-document">script's document</a>, and
+  the <code><a href="#document">Document</a></code> is both <a href="#ready-for-post-load-tasks">ready for post-load
+  tasks</a> and <a href="#completely-loaded">completely loaded</a> immediately.<p>Each <code><a href="#document">Document</a></code> object has a <dfn id="reload-override-flag">reload override
   flag</dfn> that is originally unset. The flag is set by the <code title="dom-document-open"><a href="#dom-document-open">document.open()</a></code> and <code title="dom-document-open"><a href="#dom-document-open">document.write()</a></code> methods in certain
   situations. When the flag is set, the <code><a href="#document">Document</a></code> also has
   a <dfn id="reload-override-buffer">reload override buffer</dfn> which is a Unicode string that
@@ -10376,7 +10378,11 @@
    <li><p>Return the <code><a href="#document">Document</a></code> on which the method was
    invoked.</li>
 
-  </ol><p>When called with three or more arguments, the <code title="dom-document-open"><a href="#dom-document-open">open()</a></code> method on the
+  </ol><p class="note">The <code title="dom-document-open"><a href="#dom-document-open">document.open()</a></code> method does not
+  affect whether a <code><a href="#document">Document</a></code> is <a href="#ready-for-post-load-tasks">ready for post-load
+  tasks</a> or <a href="#completely-loaded">completely loaded</a>.</p>
+
+  <p>When called with three or more arguments, the <code title="dom-document-open"><a href="#dom-document-open">open()</a></code> method on the
   <code><a href="#htmldocument">HTMLDocument</a></code> object must call the <code title="dom-open"><a href="#dom-open">open()</a></code> method on the <code><a href="#window">Window</a></code>
   object of the <code><a href="#htmldocument">HTMLDocument</a></code> object, with the same
   arguments as the original call to the <code title="dom-document-open"><a href="#dom-document-open">open()</a></code> method, and return whatever
@@ -50337,8 +50343,12 @@
 
   </dl><div class="impl">
 
-  <p>The <dfn id="dom-print" title="dom-print"><code>print()</code></dfn> method,
-  when invoked, must run the <a href="#printing-steps">printing steps</a>.</p>
+  <p>When the <dfn id="dom-print" title="dom-print"><code>print()</code></dfn> method
+  is invoked, if the <code><a href="#document">Document</a></code> is <a href="#ready-for-post-load-tasks">ready for
+  post-load tasks</a>, then the user agent must synchronously run
+  the <a href="#printing-steps">printing steps</a>. Otherwise, the user agent must only
+  set the <dfn id="print-when-loaded">print when loaded</dfn> flag on the
+  <code><a href="#document">Document</a></code>.</p>
 
   <p>User agents should also run the <a href="#printing-steps">printing steps</a>
   whenever the user asks for the opportunity to <a href="#obtain-a-physical-form">obtain a
@@ -50367,7 +50377,7 @@
     <p>The user agent must <a href="#fire-a-simple-event">fire a simple event</a> named
     <code title="event-beforeprint">beforeprint</code> at the
     <code><a href="#window">Window</a></code> object of the <code><a href="#document">Document</a></code> that is
-    being printed, as well as any <a href="#nested-browsing-context" title="nested browsing
+      being printed, as well as any <a href="#nested-browsing-context" title="nested browsing
     context">nested browsing contexts</a> in it.</p>
 
     <p class="example">The <code title="event-beforeprint">beforeprint</code> event can be used
@@ -62425,6 +62435,10 @@
    for these <a href="#concept-task" title="concept-task">tasks</a> is the
    <a href="#networking-task-source">networking task source</a>.</li>
 
+   <li><p>If the <code><a href="#document">Document</a></code>'s <a href="#print-when-loaded">print when
+   loaded</a> flag is set, then run the <a href="#printing-steps">printing
+   steps</a>.</li>
+
    <li><p>The <code><a href="#document">Document</a></code> is now <dfn id="ready-for-post-load-tasks">ready for post-load
    tasks</dfn>.</li>
 

Received on Tuesday, 2 August 2011 23:14:54 UTC