mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
296 lines
7.4 KiB
Plaintext
296 lines
7.4 KiB
Plaintext
|
|
||
|
x Document
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:1:1]
|
||
|
1 | ,-> <!DOCTYPE html>
|
||
|
2 | | <html>
|
||
|
3 | | <body>
|
||
|
4 | |
|
||
|
5 | | <!--This is a comment-->
|
||
|
6 | | <!-- This is a comment -->
|
||
|
7 | | <p>This is a paragraph.</p>
|
||
|
8 | | <!-- Comments are not displayed in the browser -->
|
||
|
9 | |
|
||
|
10 | | </body>
|
||
|
11 | | </html>
|
||
|
12 | |
|
||
|
13 | `->
|
||
|
`----
|
||
|
|
||
|
x Doctype { name: Some(Atom('html' type=inline)), force_quirks: false, public_id: None, system_id: None }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:1:1]
|
||
|
1 | <!DOCTYPE html>
|
||
|
: ^^^^^^^^^^^^^^^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:1:1]
|
||
|
1 | <!DOCTYPE html>
|
||
|
: ^
|
||
|
2 | <html>
|
||
|
`----
|
||
|
|
||
|
x StartTag { tag_name: Atom('html' type=inline), self_closing: false, attributes: [] }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:2:1]
|
||
|
2 | <html>
|
||
|
: ^^^^^^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:2:1]
|
||
|
2 | <html>
|
||
|
: ^
|
||
|
3 | <body>
|
||
|
`----
|
||
|
|
||
|
x StartTag { tag_name: Atom('body' type=inline), self_closing: false, attributes: [] }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:3:1]
|
||
|
3 | <body>
|
||
|
: ^^^^^^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:3:1]
|
||
|
3 | <body>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:4:1]
|
||
|
4 |
|
||
|
: ^
|
||
|
5 | <!--This is a comment-->
|
||
|
`----
|
||
|
|
||
|
x Comment { data: Atom('This is a comment' type=dynamic) }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:5:1]
|
||
|
5 | <!--This is a comment-->
|
||
|
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:5:1]
|
||
|
5 | <!--This is a comment-->
|
||
|
: ^
|
||
|
6 | <!-- This is a comment -->
|
||
|
`----
|
||
|
|
||
|
x Comment { data: Atom(' This is a comment ' type=dynamic) }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:6:1]
|
||
|
6 | <!-- This is a comment -->
|
||
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:6:1]
|
||
|
6 | <!-- This is a comment -->
|
||
|
: ^
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
`----
|
||
|
|
||
|
x StartTag { tag_name: Atom('p' type=inline), self_closing: false, attributes: [] }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^^^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'T' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'h' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'i' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 's' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: ' ' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'i' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 's' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: ' ' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'a' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: ' ' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'p' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'a' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'r' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'a' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'g' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'r' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'a' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'p' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: 'h' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '.' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x EndTag { tag_name: Atom('p' type=inline), self_closing: false, attributes: [] }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^^^^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:7:1]
|
||
|
7 | <p>This is a paragraph.</p>
|
||
|
: ^
|
||
|
8 | <!-- Comments are not displayed in the browser -->
|
||
|
`----
|
||
|
|
||
|
x Comment { data: Atom(' Comments are not displayed in the browser ' type=dynamic) }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:8:1]
|
||
|
8 | <!-- Comments are not displayed in the browser -->
|
||
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:8:1]
|
||
|
8 | <!-- Comments are not displayed in the browser -->
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:9:1]
|
||
|
9 |
|
||
|
: ^
|
||
|
10 | </body>
|
||
|
`----
|
||
|
|
||
|
x EndTag { tag_name: Atom('body' type=inline), self_closing: false, attributes: [] }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:10:1]
|
||
|
10 | </body>
|
||
|
: ^^^^^^^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:10:1]
|
||
|
10 | </body>
|
||
|
: ^
|
||
|
11 | </html>
|
||
|
`----
|
||
|
|
||
|
x Character { value: ' ' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:11:1]
|
||
|
11 | </html>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: ' ' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:11:2]
|
||
|
11 | </html>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x EndTag { tag_name: Atom('html' type=inline), self_closing: false, attributes: [] }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:11:3]
|
||
|
11 | </html>
|
||
|
: ^^^^^^^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:11:3]
|
||
|
11 | </html>
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:12:1]
|
||
|
12 |
|
||
|
: ^
|
||
|
`----
|
||
|
|
||
|
x Character { value: '\n' }
|
||
|
,-[$DIR/tests/fixture/hidden-comments/input.html:13:1]
|
||
|
13 |
|
||
|
: ^
|
||
|
`----
|