tor-browser

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

shadowrootadoptedstylesheets-document-parse-crash.html (620B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>shadowrootadoptedstylesheets does not crash in Document.parseHTMLUnsafe</title>
      5 <meta name="author" title="Kurt Catti-Schmidt" href="mailto:kschmi@microsoft.com" />
      6 <link rel='help' href='https://github.com/whatwg/html/pull/11687'>
      7 </head>
      8 <body>
      9 <script>
     10    const new_document = Document.parseHTMLUnsafe(
     11      "<div id='host'>" +
     12        "<template shadowrootmode='open' shadowrootadoptedstylesheets='foo'>" +
     13          "<span id='test_element'>Test content</span>" +
     14        "</template>" +
     15      "</div>"
     16    );
     17 </script>
     18 <p>Test passes if there is no crash.</p>
     19 </body>
     20 </html>