Skip to content

Commit

Permalink
Add regression test for comma selector
Browse files Browse the repository at this point in the history
Closes #3706.
  • Loading branch information
domenic committed May 26, 2024
1 parent a343932 commit 8738255
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<title>Comma selector</title>
<meta charset="utf-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<!-- Regression test for https://github.com/jsdom/jsdom/issues/3706 -->

<h1>Hello world</h1>
<h2>Goodbye, world</h2>

<script>
"use strict";
test(() => {
assert_equals(document.querySelectorAll("h1,h2").length, 2);
});
</script>

0 comments on commit 8738255

Please sign in to comment.