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
ReferenceError: HTMLSelectElement is not defined #664
Comments
// happy-dom/packages/happy-dom/src/index.ts export { Thank you! Some of our tests are broken after switched from JSDOM to happy-dom. I got some other errors (and solutions), but easy wins first. :) |
…selectelement-is-not-defined #664@patch: Adds the property window.HTMLSelectElement, so that it wi…
Re-opening. Wrong import. |
#664@patch: Fixes error due to typo in import path.
Sorry for taking so long @RettentoRectangle! 😅 It has finally been fixed. You can read more about the release here: |
Describe the bug
HTMLSelectElement import is missing from index.ts
To Reproduce
const el = document.createElement('select')
const isSelect = el instanceof HTMLSelectElement // <- ReferenceError: HTMLSelectElement is not defined
Expected behavior
HTMLSelectElement is part of the globals
Additional context
Switching from JSDOM to happy-dom
The text was updated successfully, but these errors were encountered: