https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 174e1be20f6093c72294a0c62939a97f84f838ff authored by pyup-bot on 11 April 2018, 21:39:00 UTC
Update marionette_driver from 2.5.0 to 2.6.0
Tip revision: 174e1be
innerHTML.tentative.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script>
<body>
<script>
  test(t => {
    var html = TrustedHTML.escape(STRINGS.unescapedHTML);

    var d = document.createElement('div');
    d.innerHTML = html;
    assert_equals(d.innerText, STRINGS.unescapedHTML);
  }, "innerHTML = TrustedHTML.escape().");

  test(t => {
    var html = TrustedHTML.unsafelyCreate(STRINGS.unescapedHTML);

    var d = document.createElement('div');
    d.innerHTML = html;
    assert_equals(d.innerText, STRINGS.unescapedText);
  }, "innerHTML = TrustedHTML.unsafelyCreate().");
</script>
back to top