()
| 80 | } |
| 81 | |
| 82 | private resolveMarkupReader(): () => void { |
| 83 | if (this.startsWith('<!--')) return () => this.skipUntil('-->', 'Comment is not closed.'); |
| 84 | if (this.startsWith('<?')) |
| 85 | return () => this.skipUntil('?>', 'Processing instruction is not closed.'); |
| 86 | if (this.startsWith('<![CDATA[')) return () => this.readCdata(); |
| 87 | if (this.startsWith('<!')) return () => this.skipDeclaration(); |
| 88 | if (this.startsWith('</')) return () => this.readClosingTag(); |
| 89 | return () => this.readOpeningTag(); |
| 90 | } |
| 91 | |
| 92 | private assertFullyClosed(): void { |
| 93 | if (this.stack.length > 0) { |
no test coverage detected