tor-browser

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

test_bug787432.html (689B)


      1 <!DOCTYPE html>
      2 <!--
      3 https://bugzilla.mozilla.org/show_bug.cgi?id=787432
      4 -->
      5 <title>Test for Bug 787432</title>
      6 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7 <link rel="stylesheet" href="/tests/SimpleTest/test.css">
      8 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=787432">Mozilla Bug 787432</a>
      9 <div id="test" contenteditable><span class="insert">%</span><br></div>
     10 <script>
     11 var div = document.getElementById("test");
     12 getSelection().collapse(div.firstChild, 0);
     13 getSelection().extend(div.firstChild, 1);
     14 document.execCommand("inserttext", false, "x");
     15 is(div.innerHTML, '<span class="insert">x</span>',
     16   "Empty <span> needs to not be removed");
     17 </script>