tor-browser

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

test-print-selection.html (554B)


      1 <!DOCTYPE html>
      2 <html reftest-print-range="selection">
      3 <head>
      4  <meta charset="utf-8">
      5  <link href="print.css" rel="stylesheet">
      6  <script>
      7    function selectNodeById(id) {
      8      var node = document.getElementById(id);
      9      var rng = document.createRange();
     10      rng.selectNode(node);
     11      window.getSelection().addRange(rng);
     12    }
     13  </script>
     14 </head>
     15 <body onload="selectNodeById('selection')">
     16  <p>This text should not be there</p>
     17  <p id="selection">This text should appear on page 1</p>
     18  <p>This text should not be there</p>
     19 </body>
     20 </html>