summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/webappapis/dynamic-markup-insertion/document-write/041.html
blob: 592711c94fdcbd7858dfe166e0baae80e9a6fd34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!doctype html>
<title>document.write entity</title>
<script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
<script>
var t = test(function() {
  var s = "<body><span>&notin;abc";
  for (var i=0; i<s.length; i++) {
    document.write(s[i]);
  }
  assert_equals(document.body.childNodes[0].textContent, "\u2209abc");
});
</script>
<div id="log"></div>