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.matches fails when using non-matching descendant selector on element attached to document #622
Comments
…ching descendant selector on element attached to document.
…descendant-seelctor #622@patch: Fix Element.matches failing when using non-matching desce…
Thanks @IGx89 for your contribution! 🙂 Your fix has been released. You can read more about the release here: |
I was having this issue, I'm still getting a similar error with version 7.5.3 but now it is:
|
It seems like the problem isn't completely fixed. Re-opening. |
@cristianstu Can you share your selectors and HTML with us? And more of your stack trace? |
Sure, I'm actually using testing library, not happy dom directly, this is the stack trace:
|
Thanks! That's actually not Element.matches so this is a separate issue. Looks like something in your CSS style sheet is triggering the exception. |
…ching descendant selector on element detached from document.
@cristianstu I looked over the code and found a (different) way to reproduce that specific error. I've submitted #625 to fix it -- hopefully it'll fix your issue! |
Perfect, Thank you! |
…descendant-selector #622@patch: Fix Element.matches failing when using non-matching desce…
@cristianstu give v7.5.14 a try and let us know! |
Thanks for your contribution @IGx89! 🙂 Your fix is in now. You can read more about the release here: |
It's fixed! Everything looks nice, thanks! |
The text was updated successfully, but these errors were encountered: