* Add text element to active node. * @param text
(text)
| 104 | * @param text |
| 105 | */ |
| 106 | appendText(text) { |
| 107 | const trimmedText = text.trim(); |
| 108 | if (trimmedText.length === 0) { |
| 109 | // Whitespace around element tags is ignored |
| 110 | return; |
| 111 | } |
| 112 | this.addChild('text', undefined, [decodeHtmlEntities(text)]); |
| 113 | } |
| 114 | |
| 115 | getParent() { |
| 116 | return this.activeNode.parent; |
nothing calls this directly
no test coverage detected