MCPcopy
hub / github.com/rrweb-io/rrweb / shadowRoot

Function shadowRoot

packages/utils/src/index.ts:234–237  ·  view source on GitHub ↗
(n: Node)

Source from the content-addressed store, hash-verified

232}
233
234export function shadowRoot(n: Node): ShadowRoot | null {
235 if (!n || !('shadowRoot' in n)) return null;
236 return getUntaintedAccessor('Element', n as Element, 'shadowRoot');
237}
238
239export function querySelector(n: Element, selectors: string): Element | null {
240 return getUntaintedAccessor('Element', n, 'querySelector')(selectors);

Callers

nothing calls this directly

Calls 1

getUntaintedAccessorFunction · 0.85

Tested by

no test coverage detected