Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /dom/nodes/ParentNode-querySelector-is-not.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>querySelector with :is():not()</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
"use strict";
test(() => {
assert_equals(document.querySelector(":is([a],b):not(.c)"), null, "does not throw");
assert_equals(document.querySelector(":is(a,[b]):not(.c)"), null, "does not throw");
assert_equals(document.querySelector(":is(a,b):not(.c)"), null, "does not throw");
assert_equals(document.querySelector(":is(a,b):not([c])"), null, "does not throw");
assert_equals(document.querySelector(":is(a):not([b],.c)"), null, "does not throw");
assert_equals(document.querySelector(":is(a,[b])"), null, "does not throw");
assert_equals(document.querySelector(":is(a,[b]):first-child"), null, "does not throw");
assert_equals(document.querySelector(":is([b]):not(.c)"), null, "does not throw");
}, "querySelector with :is():not() combined");
</script>