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

Migrating to happy-dom raises some issue #1558

Closed
eduardhasanaj opened this issue Sep 30, 2024 · 1 comment · Fixed by #1602
Closed

Migrating to happy-dom raises some issue #1558

eduardhasanaj opened this issue Sep 30, 2024 · 1 comment · Fixed by #1602
Assignees
Labels
bug Something isn't working

Comments

@eduardhasanaj
Copy link

I am trying to use happy-dom in an existing test suite with 1000 but I get following error for some of the tests:

  1. DOMException: Failed to execute 'matches' on 'HTMLButtonElement': 'button:not' is not a valid selector.
  2. TypeError: Cannot set properties of null (setting 'onclick')
  3. ReferenceError: $ is not defined: the code run in browser without errors as I checked console.

Steps to reproduce the behavior:
I don't understand some of the issues like $ Reference Error but first issue is caused by following query selector

el.querySelectorAll("button:not([type]")
@capricorn86
Copy link
Owner

Thank you for reporting @eduardhasanaj! 🙂

I believe this has been fixed now in the latest release.

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
2 participants