tor-browser

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

633709.xhtml (1746B)


      1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
      2 
      3 <body><div contenteditable="true"></div><div><input><div></div></input></div></body>
      4 
      5 <script>
      6 <![CDATA[
      7 function onLoad() {
      8  // For emulating the traditional behavior, collapse Selection to end of the
      9  // parent <div> of the <input>.  In XHTML document, the <input> may have the
     10  // <div> child.  Therefore, the deepest last child container element of the
     11  // <body> is the parent of the <input>.
     12  getSelection().collapse(
     13    document.querySelector("input").parentElement,
     14    document.querySelector("input").parentElement.childNodes.length
     15  );
     16  document.querySelector("input").focus();
     17 
     18  try {
     19    document.execCommand("stylewithcss", false, "true");
     20  } catch(e) {}
     21  try {
     22    document.execCommand("inserthtml", false, "<x>X</x>");
     23  } catch(e) {}
     24  try {
     25    document.execCommand("underline");
     26  } catch(e) {}
     27  try {
     28    document.execCommand("justifyfull");
     29  } catch(e) {}
     30  try {
     31    document.execCommand("underline");
     32  } catch(e) {}
     33  try {
     34    document.execCommand("insertParagraph");
     35  } catch(e) {}
     36  try {
     37    document.execCommand("delete");
     38  } catch(e) {}
     39 
     40  try {
     41    document.execCommand("stylewithcss", false, "false");
     42  } catch(e) {}
     43  try {
     44    document.execCommand("inserthtml", false, "<x>X</x>");
     45  } catch(e) {}
     46  try {
     47    document.execCommand("underline");
     48  } catch(e) {}
     49  try {
     50    document.execCommand("justifyfull");
     51  } catch(e) {}
     52  try {
     53    document.execCommand("underline");
     54  } catch(e) {}
     55  try {
     56    document.execCommand("insertParagraph");
     57  } catch(e) {}
     58  try {
     59    document.execCommand("delete");
     60  } catch(e) {}
     61 
     62  document.documentElement.removeAttribute("class");
     63 }
     64 addEventListener("load", onLoad);
     65 ]]>
     66 </script>
     67 
     68 </html>