add elem.shadowRoot fallback in getShadowRoot

This commit is contained in:
Anton Lazarev 2026-01-12 17:30:20 -08:00
parent 161cc473a2
commit c8b42ea819
No known key found for this signature in database
GPG key ID: FBD20243E0CD9104

View file

@ -2072,7 +2072,7 @@ function trustedClickElement(
return chrome.dom.openOrClosedShadowRoot(elem);
}
}
return null;
return elem.shadowRoot;
};
const querySelectorEx = (selector, context = document) => {