tor-browser

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

ParentNode-querySelector-case-insensitive.html (645B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>querySelector(All) must work with the i and *= selectors</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/2551 -->
      7 
      8 <input name="User" id="testInput"></input>
      9 
     10 <script>
     11 "use strict";
     12 const input = document.getElementById("testInput");
     13 
     14 test(() => {
     15  assert_equals(document.querySelector("input[name*=user i]"), input);
     16 }, "querySelector");
     17 
     18 test(() => {
     19  assert_array_equals(document.querySelectorAll("input[name*=user i]"), [input]);
     20 }, "querySelectorAll");
     21 </script>