OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>document.writeln with multiple arguments</title> |
| 3 <link rel="author" title="Sebmaster" href="mailto:wpt@smayr.name"> |
| 4 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-writ
eln%28%29"> |
| 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#documents-in-the-
dom"> |
| 6 <script src="../../../../../../resources/testharness.js"></script> |
| 7 <script src="../../../../../../resources/testharnessreport.js"></script> |
| 8 <div id="log"></div> |
| 9 <script> |
| 10 test(function() { |
| 11 var iframe = document.createElement("iframe"); |
| 12 document.body.appendChild(iframe); |
| 13 var doc = iframe.contentDocument; |
| 14 doc.open(); |
| 15 doc.writeln('a', 'b'); |
| 16 doc.close(); |
| 17 assert_equals(doc.documentElement.textContent, "ab\n"); |
| 18 }, "Calling document.writeln with multiple arguments"); |
| 19 </script> |
OLD | NEW |