[html5] r4755 - [e] (0) Mention the document.open() magic in document.write()'s domintro. Fixing [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Feb 17 00:48:44 PST 2010
Author: ianh
Date: 2010-02-17 00:48:42 -0800 (Wed, 17 Feb 2010)
New Revision: 4755
Modified:
complete.html
index
source
Log:
[e] (0) Mention the document.open() magic in document.write()'s domintro.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8938
Modified: complete.html
===================================================================
--- complete.html 2010-02-17 07:39:08 UTC (rev 4754)
+++ complete.html 2010-02-17 08:48:42 UTC (rev 4755)
@@ -10137,6 +10137,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>
Modified: index
===================================================================
--- index 2010-02-17 07:39:08 UTC (rev 4754)
+++ index 2010-02-17 08:48:42 UTC (rev 4755)
@@ -10036,6 +10036,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>
Modified: source
===================================================================
--- source 2010-02-17 07:39:08 UTC (rev 4754)
+++ source 2010-02-17 08:48:42 UTC (rev 4755)
@@ -10392,6 +10392,12 @@
<p>This method throws an <code>INVALID_ACCESS_ERR</code> exception
when invoked on <span>XML documents</span>.</p>
+ <p>Unless called from the body of a <code>script</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">document.open()</code> had
+ been called.</p>
+
</dd>
</dl>
More information about the Commit-Watchers
mailing list