Variable: documentRootSelector
constdocumentRootSelector:":root"=':root'
Defined in: packages/core/src/utils/locatorUtil.ts:17
The portable document-root selector an empty locator chain reduces to. <html>
in the DOM, matched by both document.querySelector(':root') (jsdom) and
page.locator(':root') (Chromium). Used so the engine-root locator ([], in
the DOM/Playwright adapters) resolves to a real element instead of '', which
throws a CSS parse error in every engine. See #1048.