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

Function getRootNode

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

Source from the content-addressed store, hash-verified

219}
220
221export function getRootNode(n: Node): Node {
222 return getUntaintedMethod('Node', n, 'getRootNode')();
223}
224
225export function host(n: ShadowRoot): Element | null {
226 if (!n || !('host' in n)) return null;

Callers

nothing calls this directly

Calls 1

getUntaintedMethodFunction · 0.85

Tested by

no test coverage detected