tor-browser

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

test_bug545644.html (898B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 -->
      5 <head>
      6  <title>Test for HTML serializer + innerHtml, bug 545644</title>
      7  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      8  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
      9 </head>
     10 <body>
     11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=545644">Mozilla Bug </a>
     12 <p id="display"></p>
     13 
     14 <pre id="test">
     15 <script class="testbody" type="text/javascript">
     16 
     17 function testInner () {
     18  var div = document.getElementById("test_inner");
     19 
     20    try {
     21      div.innerHTML = "some \u00A0 &nbsp; text";
     22      div.innerHTML += "!";
     23      ok(true, "innerHTML in html test ok");
     24    } catch (e) {
     25      ok(false, "innerHTML in html test failed, unwanted exception " + e);
     26    }
     27 
     28  SimpleTest.finish();
     29 }
     30 
     31 
     32 SimpleTest.waitForExplicitFinish();
     33 
     34 addLoadEvent(testInner);
     35 
     36 </script>
     37 </pre>
     38 <div id="test_inner"></div>
     39 </body>
     40 </html>