tor-browser

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

ParentNode-querySelectors-namespaces.html (586B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>querySelectorAll must work with namespace attribute selectors on SVG</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <!-- Regression test for https://github.com/jsdom/jsdom/issues/2028 -->
      7 
      8 <svg id="thesvg" xlink:href="foo"></svg>
      9 
     10 <script>
     11 "use strict";
     12 
     13 setup({ single_test: true });
     14 
     15 const el = document.getElementById("thesvg");
     16 
     17 assert_equals(document.querySelector("[*|href]"), el);
     18 assert_array_equals(document.querySelectorAll("[*|href]"), [el]);
     19 
     20 done();
     21 </script>