We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Using > with :has selector doesn't work in happy-dom
>
:has
To Reproduce
const { Window } = require('happy-dom'); const window = new Window(); const document = window.document; const container = document.createElement('div'); container.innerHTML = ` <span><video attr="value1"></video></span> <span><b><video></video></b></span> `; console.log(Array.from(container.querySelectorAll('span:has(> video)')));
Expected behavior It should return single element.
The text was updated successfully, but these errors were encountered:
feat: [#1642] Adds support for child combinator to :has pseudo selector
7973bb8
feat: [#1642] Adds support for child combinator to :has pseudo select…
17634e6
…or (#1660)
Thank you for reporting @uitest93! 🙂
This should be fixed now in v16.3.0.
Sorry, something went wrong.
capricorn86
Successfully merging a pull request may close this issue.
Describe the bug
Using
>
with:has
selector doesn't work in happy-domTo Reproduce
Expected behavior
It should return single element.
The text was updated successfully, but these errors were encountered: