tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

049.html (803B)


      1 <!doctype html>
      2 <title>document.write plaintext</title>
      3 <script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
      4 <div id="log"></div><script>
      5 test(function() {
      6  var s = "<table><tr><td>Text</tr><plaintext><tr><td>Filler ";
      7  for (var i=0; i<s.length; i++) {
      8    document.write(s[i]);
      9  }
     10  document.close();
     11  assert_equals(document.body.childNodes[2].nodeType, document.ELEMENT_NODE);
     12  assert_equals(document.body.childNodes[2].localName, "plaintext");
     13  assert_equals(document.body.childNodes[2].textContent, "<tr><td>Filler ");
     14  assert_equals(document.body.childNodes[3].nodeType, document.ELEMENT_NODE);
     15  assert_equals(document.body.childNodes[3].localName, "table");
     16  assert_equals(document.body.childNodes[3].textContent, "Text");
     17 });
     18 </script>