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(`<!DOCTYPE html><p>Hello world</p>`);dom.window.document.querySelector('*:has(+ p)')// Uncaught DOMException [SyntaxError]: '+p' is not a valid selector
The text was updated successfully, but these errors were encountered:
(Version 2.2.13)
The first example of
:has
, from the MDN website, uses relative selection. Trying to use this in a JSDOM/NWSAPI environment fails. Do you intend on supporting such a feature?The text was updated successfully, but these errors were encountered: