You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{JSDOM}=require("jsdom");constdom=newJSDOM('');dom.window.document.querySelector(`:is([a],b):not(.c)`)// Uncaught DOMException [SyntaxError]: '[a],b):not(.c' is not a valid selectordom.window.document.querySelector(`:is(a,[b]):not(.c)`);// Uncaught DOMException [SyntaxError]: 'a,[b]):not(.c' is not a valid selector// the followings workdom.window.document.querySelector(`:is(a,b):not(.c)`);dom.window.document.querySelector(`:is(a,b):not([c])`);dom.window.document.querySelector(`:is(a):not([b],.c)`);dom.window.document.querySelector(`:is(a,[b])`);dom.window.document.querySelector(`:is(a,[b]):first-child`);dom.window.document.querySelector(`:is([b]):not(.c)`);
Basic info:
jsdom v23.2.0 didn't show this issue.
Minimal reproduction case
How does similar code behave in browsers?
They don't throw the error.
https://codepen.io/ginpei/pen/BabXQzv
The text was updated successfully, but these errors were encountered: