W3C home > Mailing lists > Public > public-html-diffs@w3.org > February 2010

hixie: Mention the document.open() magic in document.write()'s domintro. (whatwg r4755)

From: poot <cvsmail@w3.org>
Date: Wed, 17 Feb 2010 17:48:59 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100217084900.0BF0C2BC3B@toro.w3.mag.keio.ac.jp>
hixie: Mention the document.open() magic in document.write()'s domintro.
(whatwg r4755)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3802&r2=1.3803&f=h
http://html5.org/tools/web-apps-tracker?from=4754&to=4755

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3802
retrieving revision 1.3803
diff -u -d -r1.3802 -r1.3803
--- Overview.html	17 Feb 2010 07:39:13 -0000	1.3802
+++ Overview.html	17 Feb 2010 08:48:48 -0000	1.3803
@@ -8715,6 +8715,12 @@
     <p>This method throws an <code><a href="#invalid_access_err">INVALID_ACCESS_ERR</a></code> exception
     when invoked on <a href="#xml-documents">XML documents</a>.</p>
 
+    <p>Unless called from the body of a <code><a href="#script">script</a></code> element
+    while the document is being parsed, or called on a script-created
+    document, calling this method will clear the current page first,
+    as if <code title="dom-document-open"><a href="#dom-document-open">document.open()</a></code> had
+    been called.</p>
+
    </dd>
 
   </dl><div class="impl">
Received on Wednesday, 17 February 2010 08:49:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:17 GMT