tor-browser

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

non-html-noscript.html (771B)


      1 <!doctype html>
      2 <title>noscript rules don't apply to non-html elements</title>
      3 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      4 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-noscript-element">
      5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1470150">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <body>
      9 <script>
     10 test(function() {
     11  let non_html_noscript = document.createElementNS("http://www.w3.org/2000/svg", "noscript");
     12  document.body.appendChild(non_html_noscript);
     13  assert_not_equals(getComputedStyle(non_html_noscript).display, "none");
     14 }, "Non-HTML <noscript> element shouldn't be undisplayed by a UA rule");
     15 </script>
     16 </body>