Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/webappapis/dynamic-markup-insertion/document-writeln/document.writeln-03.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>document.writeln with multiple arguments</title>
<link rel="author" title="Sebmaster" href="mailto:wpt@smayr.name">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
test(function() {
var iframe = document.createElement("iframe");
document.body.appendChild(iframe);
var doc = iframe.contentDocument;
doc.open();
doc.writeln('a', 'b');
doc.close();
assert_equals(doc.documentElement.textContent, "ab\n");
}, "Calling document.writeln with multiple arguments");
</script>