summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-write/002.html
blob: 08975bca7be08171d1ac843773038f97fc9b9ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!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");
  assert_equals(document.body.firstChild.localName, "i");
  assert_equals(document.body.firstChild.textContent, "Filler Text");
}
);
</script>
<div id="log"></div>