mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 16:28:58 +00:00
add element queryselector wpt test
This commit is contained in:
@@ -0,0 +1,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>
|
||||
Reference in New Issue
Block a user