MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / innerText

Method innerText

packages/alphatab/src/xml/XmlNode.ts:106–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 public get innerText(): string {
107 if (this.nodeType === XmlNodeType.Element || this.nodeType === XmlNodeType.Document) {
108 if (this.firstElement && this.firstElement.nodeType === XmlNodeType.CDATA) {
109 return this.firstElement.innerText;
110 }
111 let txt: string = '';
112 for (const c of this.childNodes) {
113 txt += c.innerText?.toString();
114 }
115 const s: string = txt;
116 return s.trim();
117 }
118 return this.value ?? '';
119 }
120
121 public set innerText(value: string) {
122 const textNode = new XmlNode();

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected