Skip to content

Commit

Permalink
[] (0) Make document.write() and document.writeln() support zero and …
Browse files Browse the repository at this point in the history
…multiple arguments. (credit: avk)

git-svn-id: http://svn.whatwg.org/webapps@1944 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 25, 2008
1 parent 6169020 commit 31f6d50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
9 changes: 4 additions & 5 deletions index
Expand Up @@ -6907,8 +6907,8 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<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>();
Expand Down Expand Up @@ -8543,9 +8543,8 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
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>
Expand Down
10 changes: 4 additions & 6 deletions source
Expand Up @@ -4936,8 +4936,8 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<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>();
Expand Down Expand Up @@ -6579,10 +6579,8 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
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>
Expand Down

0 comments on commit 31f6d50

Please sign in to comment.