tor-browser

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

1158651.html (494B)


      1 <script>
      2 onload = function() {
      3  var testContainer = document.createElement("span");
      4  testContainer.contentEditable = true;
      5  document.body.appendChild(testContainer);
      6 
      7  function queryFormatBlock(content)
      8  {
      9    testContainer.innerHTML = content;
     10    while (testContainer.firstChild)
     11        testContainer = testContainer.firstChild;
     12    window.getSelection().collapse(testContainer, 0);
     13    document.queryCommandValue('formatBlock');
     14  }
     15 
     16  queryFormatBlock('<ol>hello</ol>');
     17 };
     18 </script>