tor-browser

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

stringbuffer-USVString.html (377B)


      1 <!doctype html>
      2 <script>
      3  var div = document.createElement("div");
      4  // Need a long-enough string that when we get it from the DOM it will not get
      5  // inlined and will be an external stringbuffer string.
      6  var str = "http://" + (new Array(200).join("a"));
      7  div.setAttribute("x", str);
      8  str = div.getAttribute("x");
      9  // Now pass it as a USVString
     10  new URL(str);
     11 </script>