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
Bug: DOMException [SyntaxError]: 'h1,h2' is not a valid selector #3706
Comments
seems some deps updated make this bug. |
I also started getting this recently. It's not happening when downgrading from 24.0.0 to 23.2.0. |
I had this problem yesterday. So out of curiosity, i just tested @nbbaier 's code using No idea! Not sure why. Can you try uninstall and install |
Try pinning nwsapi to 2.2.9 via Here's a package.json with a simple repro: {
"name": "nwsapi-regression",
"version": "0",
"scripts": {
"test": "node -p -e 'new (require(\"jsdom\").JSDOM)().window.document.querySelector(\"h1,h2\")'"
},
"dependencies": { "jsdom": "24.0.0" },
"overrides": { "nwsapi": "2.2.8" },
"resolutions": { "nwsapi": "2.2.8" }
}
|
Basic info:
Minimal reproduction case
When I run the above code, I get the follow error trace:
How does similar code behave in browsers?
As expected, the error does not occur in browsers. See this jsbin
Note that this error does not occur in Deno, either. Minimal deno example:
Output:
The text was updated successfully, but these errors were encountered: