Skip to content

Commit 942e63d

Browse files
authored
Clarify discouragement of document.write() applies to writeln()
1 parent d426109 commit 942e63d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116047,6 +116047,10 @@ document.body.appendChild(frame)</code></pre>
116047116047
character. If necessary, calls the <code data-x="dom-document-open">open()</code> method
116048116048
implicitly first.</p>
116049116049

116050+
<p class="warning">This method has very idiosyncratic behavior. <strong>Use of this
116051+
method is strongly discouraged, for the same reasons as <code
116052+
data-x="dom-document-write">document.write()</code>.</strong></p>
116053+
116050116054
<p>Throws an <span>"<code>InvalidStateError</code>"</span> <code>DOMException</code> when
116051116055
invoked on <span>XML documents</span>.</p>
116052116056

0 commit comments

Comments
 (0)