diff options
Diffstat (limited to 'testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-write/016.html')
-rw-r--r-- | testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-write/016.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-write/016.html b/testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-write/016.html new file mode 100644 index 000000000..4c2f58912 --- /dev/null +++ b/testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-write/016.html @@ -0,0 +1,16 @@ +<!doctype html> +<title>document.write</title> +<script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script> +<script> +test( +function() { + document.write("<i>Filler Text"); + document.write("</i><b>Filler Text"); + assert_equals(document.body.firstChild.localName, "i"); + assert_equals(document.body.firstChild.textContent, "Filler Text"); + assert_equals(document.body.childNodes[1].localName, "b"); + assert_equals(document.body.childNodes[1].textContent, "Filler Text"); +} +); +</script> +<div id="log"></div> |