mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-16 16:12:53 +00:00
...instead of checking if all selectors match an element. Fixes bug reduced from GitHub's "new issue" page.
10 lines
300 B
HTML
10 lines
300 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<div class="a" id="target"><div id="nested"></div></div>
|
|
<script>
|
|
test(() => {
|
|
const matchingElement = document.getElementById("nested").closest(".a, .b, .c");
|
|
printElement(matchingElement);
|
|
});
|
|
</script>
|
|
</html>
|