Skip to content
New issue

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

Element.closest throws error if rootElement is ShadowRoot (as matches undefined) #751

Open
jag-eagle-technology opened this issue Feb 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jag-eagle-technology
Copy link

I'm testing an app which uses a web element / shadow dom ui library. This cross shadow boundary closest element code breaks on happy-dom at https://github.com/capricorn86/happy-dom/blob/master/packages/happy-dom/src/nodes/element/Element.ts#L764 as closest is not defined on ShadowRoot.

@jag-eagle-technology jag-eagle-technology added the bug Something isn't working label Feb 13, 2023
romansp pushed a commit to romansp/happy-dom that referenced this issue Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant