https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0c63aee6900a6e7d2a1057d755d1bbee46d599df authored by Geoffrey Sneddon on 15 March 2018, 18:35:23 UTC
Add test for what ".." on documentElement returns
Tip revision: 0c63aee
document-write.tentative.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script>
<body>
<script>
  promise_test(t => {
    var html = TrustedHTML.escape(STRINGS.unescapedHTML);
    return createFrameAndWrite(html).then(i => {
      assert_equals(i.contentDocument.body.innerText, STRINGS.unescapedHTML, "innerText");
      i.remove();
    });
  }, "document.write(TrustedHTML).");
</script>
back to top