# Text script content
```html
```
These are true about the above snippet:
- `document.querySelectorAll('script').length === 2`.
- `!window.exec1 && window.exec2`.
- `document.querySelector('script[type="text/html"]')` has exactly one child node and it's a text node.
## Comments
If there is one or more ``, the first `` will not end the main script.
### Examples
Ending tag inside comment works because there are no nested script tags.
```html
```
There is a nested tag but it doesn't need to be closed because it's treated as text.
```html
```
There is a nested tag but it doesn't need to be closed because it's not inside an HTML comment.
```html
```
There is a nested tag but it doesn't need to be closed because main closing tag is not inside an HTML comment.
```html
```
The main closing tag is in a HTML comment but still works because there is no `
```
There is a nested tag and it's in an HTML comment but it doesn't need to be closed because it's not `script`.
```html
```
First closing tag is inside a comment with one or more previous opening tags so it doesn't close main script tag.
```html
```
There is a nested tag and it needs to be closed because it's in a comment `script`. The amount of `
```
First and second closing tags close their respective previous 1+ opening tags.
```html
```
Main closing tag works because it is in a separate comment.
```html
```
Main closing tag works because it is not in a comment.
```html
```