summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/webappapis/dynamic-markup-insertion/document-write/043.html
blob: 4058e7a8233434b192fb30133d542323c486f42b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<title>document.write entity</title>
<script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
<script>
var t = async_test();
t.step(function() {
  document.write("<body><span>&");
});
</script>notabc</span>
<script>
t.step(function() {
  assert_equals(document.body.childNodes[0].textContent, "\u00ACabc");
})
t.done();
</script>
<div id="log"></div>