summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/nodes/ParentNode-querySelector-case-insensitive.html
blob: e461ee501617d2e663c07773e07c45630d7d5d16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<meta charset="utf-8">
<title>querySelector(All) must work with the i and *= selectors</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<!-- Regression test for https://github.com/jsdom/jsdom/issues/2551 -->

<input name="User" id="testInput"></input>

<script>
"use strict";
const input = document.getElementById("testInput");

test(() => {
  assert_equals(document.querySelector("input[name*=user i]"), input);
}, "querySelector");

test(() => {
  assert_array_equals(document.querySelectorAll("input[name*=user i]"), [input]);
}, "querySelectorAll");
</script>