[html5] r1944 - [] (0) Make document.write() and document.writeln() support zero and multiple ar [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Jul 25 16:01:33 PDT 2008
Author: ianh
Date: 2008-07-25 16:01:32 -0700 (Fri, 25 Jul 2008)
New Revision: 1944
Modified:
index
source
Log:
[] (0) Make document.write() and document.writeln() support zero and multiple arguments. (credit: avk)
Modified: index
===================================================================
--- index 2008-07-25 22:29:56 UTC (rev 1943)
+++ index 2008-07-25 23:01:32 UTC (rev 1944)
@@ -6907,8 +6907,8 @@
<a href="#window">Window</a> <a href="#open" title=dom-document-open>open</a>(in DOMString url, in DOMString name, in DOMString features);
<a href="#window">Window</a> <a href="#open" title=dom-document-open>open</a>(in DOMString url, in DOMString name, in DOMString features, in boolean replace);
void <a href="#close0" title=dom-document-close>close</a>();
- void <a href="#document.write" title=dom-document-write>write</a>(in DOMString text);
- void <a href="#document.writeln..." title=dom-document-writeln>writeln</a>(in DOMString text);
+ void <a href="#document.write" title=dom-document-write>write</a>([Variadic] in DOMString text);
+ void <a href="#document.writeln..." title=dom-document-writeln>writeln</a>([Variadic] in DOMString text);
// <a href="#user-interaction">user interaction</a>
<a href="#selection1">Selection</a> <a href="#getselection0" title=dom-document-getSelection>getSelection</a>();
@@ -8543,9 +8543,8 @@
title=dom-document-writeln><code>document.writeln(...)</code></dfn> method
must call the <code title=dom-document-write><a
href="#document.write">document.write()</a></code> method with the same
- argument(s), and then call the <code title=dom-document-write><a
- href="#document.write">document.write()</a></code> method with, as its
- argument, a string consisting of a single line feed character (U+000A).
+ argument(s), plus an extra argument consisting of a string containing a
+ single line feed character (U+000A).
<h4 id=controlling><span class=secno>3.7.1 </span>Controlling the input
stream</h4>
Modified: source
===================================================================
--- source 2008-07-25 22:29:56 UTC (rev 1943)
+++ source 2008-07-25 23:01:32 UTC (rev 1944)
@@ -4936,8 +4936,8 @@
<span>Window</span> <span title="dom-document-open">open</span>(in DOMString url, in DOMString name, in DOMString features);
<span>Window</span> <span title="dom-document-open">open</span>(in DOMString url, in DOMString name, in DOMString features, in boolean replace);
void <span title="dom-document-close">close</span>();
- void <span title="dom-document-write">write</span>(in DOMString text);
- void <span title="dom-document-writeln">writeln</span>(in DOMString text);
+ void <span title="dom-document-write">write</span>([Variadic] in DOMString text);
+ void <span title="dom-document-writeln">writeln</span>([Variadic] in DOMString text);
// <span>user interaction</span>
<span>Selection</span> <span title="dom-document-getSelection">getSelection</span>();
@@ -6579,10 +6579,8 @@
title="dom-document-writeln"><code>document.writeln(...)</code></dfn>
method must call the <code
title="dom-document-write">document.write()</code> method with the
- same argument(s), and then call the <code
- title="dom-document-write">document.write()</code> method with, as
- its argument, a string consisting of a single line feed character
- (U+000A).</p>
+ same argument(s), plus an extra argument consisting of a string
+ containing a single line feed character (U+000A).</p>
<h4>Controlling the input stream</h4>
More information about the Commit-Watchers
mailing list