MCPcopy
hub / github.com/jsdom/jsdom / innerHTML

Method innerHTML

lib/jsdom/living/domparsing/InnerHTML-impl.js:12–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10exports.implementation = class InnerHTMLImpl {
11 // https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
12 get innerHTML() {
13 return fragmentSerialization(this, {
14 outer: false,
15 requireWellFormed: true,
16 globalObject: this._globalObject
17 });
18 }
19 set innerHTML(markup) {
20 const contextElement = isShadowRoot(this) ? this.host : this;
21 const fragment = parseFragment(markup, contextElement);

Callers

nothing calls this directly

Calls 3

isShadowRootFunction · 0.85
_replaceAllMethod · 0.80
parseFragmentFunction · 0.50

Tested by

no test coverage detected