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

Method attachShadow

packages/rrdom/src/document.ts:510–514  ·  view source on GitHub ↗
(_init: ShadowRootInit)

Source from the content-addressed store, hash-verified

508
509 // eslint-disable-next-line @typescript-eslint/no-unused-vars
510 public attachShadow(_init: ShadowRootInit): IRRElement {
511 const shadowRoot = this.ownerDocument.createElement('SHADOWROOT');
512 this.shadowRoot = shadowRoot;
513 return shadowRoot;
514 }
515
516 // eslint-disable-next-line @typescript-eslint/no-unused-vars
517 public dispatchEvent(_event: Event) {

Callers

nothing calls this directly

Calls 1

createElementMethod · 0.65

Tested by

no test coverage detected