-
-
Notifications
You must be signed in to change notification settings - Fork 243
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
since happy-dom@13
, Element
methods with selector string argument seem to no more support :scope
selector
.queySelector()
.querySelectorAll()
.matches()
To Reproduce
Steps to reproduce the behavior:
npm i happy-dom
- create this file:
//index.js
import { Window } from 'happy-dom';
const window = new Window();
console.log(window.document.body.matches(':scope')); // false :(
node index.js
Expected behavior
element.matches(':scope')
should be true
Device:
- OS: linux
- "Browser" happy-dem
- Version @15.11.6
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working