Convert the fragment into a node.
()
| 42 | |
| 43 | /** Convert the fragment into a node. */ |
| 44 | toNode(): Node { |
| 45 | const frag = document.createDocumentFragment(); |
| 46 | |
| 47 | for (let i = 0; i < this.children.length; i++) { |
| 48 | frag.appendChild(this.children[i].toNode()); |
| 49 | } |
| 50 | |
| 51 | return frag; |
| 52 | } |
| 53 | |
| 54 | /** Convert the fragment into HTML markup. */ |
| 55 | toMarkup(): string { |