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

Function host

packages/utils/src/index.ts:225–228  ·  view source on GitHub ↗
(n: ShadowRoot)

Source from the content-addressed store, hash-verified

223}
224
225export function host(n: ShadowRoot): Element | null {
226 if (!n || !('host' in n)) return null;
227 return getUntaintedAccessor('ShadowRoot', n, 'host');
228}
229
230export function styleSheets(n: ShadowRoot): StyleSheetList {
231 return n.styleSheets;

Callers

nothing calls this directly

Calls 1

getUntaintedAccessorFunction · 0.85

Tested by

no test coverage detected