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

Method constructor

engine/dom.js:13–15  ·  view source on GitHub ↗
(tagName = '', document = null)

Source from the content-addressed store, hash-verified

11 attrs = {};
12
13 constructor(tagName = '', document = null) {
14 Object.assign(this, { tagName, document });
15 }
16
17 get childElements() {
18 return this.children.filter(x => x.tagName !== '#text');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected