MCPcopy Create free account
hub / github.com/CanadaHonk/shadow / innerHTML

Method innerHTML

engine/layout.js:1372–1385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1370 }
1371
1372 get innerHTML() {
1373 // perf todo:
1374 // - cache this, invalidate on self/child change
1375
1376 if (this.voidElement) return '';
1377
1378 let s = '';
1379
1380 for (const child of this.children) {
1381 s += child.serialize();
1382 }
1383
1384 return s;
1385 }
1386
1387 set innerHTML(value) {
1388 // perf todo:

Callers

nothing calls this directly

Calls 7

invalidateCachesMethod · 0.95
parseMethod · 0.95
processMethod · 0.95
removeDeadTextNodesFunction · 0.85
serializeMethod · 0.80
removeMethod · 0.45
appendChildMethod · 0.45

Tested by

no test coverage detected