-
Notifications
You must be signed in to change notification settings - Fork 39
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
fix: ensure toNodeList uses doc var #134
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🫶
I believe you missed some tests in your PR :( |
Please hurry up! This seams to break the jsdom <3 |
That's it, There are some |
Where were the test cases for this particular scenario, when you needed them the most? :'( |
@ALL pushed change in 2.2.15 |
Any update on it? it's break the Jsdom |
Please fix ASAP |
Not sure, if it is supposed to fix the issue with jsdom, but with latest version of nwsapi I am still getting this error while running jest tests with jsdom.
|
For me as well, version 2.2.15 |
@dperini any reason this wouldn't address the issue. |
I'm agree. This library can be used in Node.js environment (jsdom for example) and you can't use document, you must use global.document. |
@blackrabbit99 feel free to add tests if you know how. I see a lot of directories without updates for 7 years, so I'm not sure. Perhaps @dperini can comment on this. |
Setting Config.ANODELIST to false also fixes the problem but 2.2.15 still has Config.ANODELIST to true (in npm repository). |
Sorry, 2.2.15 has Config.ANODELIST to false, but doesn't resolve the problem. |
https://github.com/ALL pushed change in 2.2.16 |
Open source at its finest! |
Reverts #73351 ~Depends on dperini/nwsapi#134 fixed in 2.2.16
Overview
The latest release has broken our esbuild compilation where we use this package via the esbuild-html-plugin, running in Node.js. As such this fix should ensure
global.document
is used in the recently addedtoNodeList
method and prevent the runtime error we're seeing:Closes #135
Closes #136