mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
442 lines
10 KiB
Plaintext
442 lines
10 KiB
Plaintext
|
|
x Document
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:1:1]
|
|
1 | ,-> <!doctype html>
|
|
2 | | <html lang="en">
|
|
3 | | <head>
|
|
4 | | <title>Document</title>
|
|
5 | | </head>
|
|
6 | | <body>
|
|
7 | | <!-- test -->
|
|
8 | |
|
|
9 | | <!-- foo --><div>baz</div><!-- bar
|
|
10 | |
|
|
11 | | moo -->
|
|
12 | | <script><!-- alert(1) --></script>
|
|
13 | | <script>alert('<!--')</script>
|
|
14 | | <script>alert('<!-- foo -->')</script>
|
|
15 | | <script>alert('-->')</script>
|
|
16 | | </body>
|
|
17 | `-> </html>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:1:1]
|
|
1 | <!doctype html>
|
|
: ^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x DocumentType
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:1:1]
|
|
1 | <!doctype html>
|
|
: ^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:2:1]
|
|
2 | ,-> <html lang="en">
|
|
3 | | <head>
|
|
4 | | <title>Document</title>
|
|
5 | | </head>
|
|
6 | | <body>
|
|
7 | | <!-- test -->
|
|
8 | |
|
|
9 | | <!-- foo --><div>baz</div><!-- bar
|
|
10 | |
|
|
11 | | moo -->
|
|
12 | | <script><!-- alert(1) --></script>
|
|
13 | | <script>alert('<!--')</script>
|
|
14 | | <script>alert('<!-- foo -->')</script>
|
|
15 | | <script>alert('-->')</script>
|
|
16 | | </body>
|
|
17 | `-> </html>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:2:1]
|
|
2 | ,-> <html lang="en">
|
|
3 | | <head>
|
|
4 | | <title>Document</title>
|
|
5 | | </head>
|
|
6 | | <body>
|
|
7 | | <!-- test -->
|
|
8 | |
|
|
9 | | <!-- foo --><div>baz</div><!-- bar
|
|
10 | |
|
|
11 | | moo -->
|
|
12 | | <script><!-- alert(1) --></script>
|
|
13 | | <script>alert('<!--')</script>
|
|
14 | | <script>alert('<!-- foo -->')</script>
|
|
15 | | <script>alert('-->')</script>
|
|
16 | | </body>
|
|
17 | `-> </html>
|
|
`----
|
|
|
|
x Attribute
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:3:1]
|
|
3 | ,-> <head>
|
|
4 | `-> <title>Document</title>
|
|
5 | </head>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:3:1]
|
|
3 | ,-> <head>
|
|
4 | `-> <title>Document</title>
|
|
5 | </head>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:3:1]
|
|
3 | ,-> <head>
|
|
4 | `-> <title>Document</title>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:3:1]
|
|
3 | ,-> <head>
|
|
4 | `-> <title>Document</title>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:4:5]
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:4:5]
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:4:5]
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:4:5]
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:4:5]
|
|
4 | <title>Document</title>
|
|
: ^
|
|
5 | </head>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:4:5]
|
|
4 | <title>Document</title>
|
|
: ^
|
|
5 | </head>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:5:1]
|
|
5 | </head>
|
|
: ^
|
|
6 | <body>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:5:1]
|
|
5 | </head>
|
|
: ^
|
|
6 | <body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:6:1]
|
|
6 | ,-> <body>
|
|
7 | | <!-- test -->
|
|
8 | |
|
|
9 | | <!-- foo --><div>baz</div><!-- bar
|
|
10 | |
|
|
11 | | moo -->
|
|
12 | | <script><!-- alert(1) --></script>
|
|
13 | | <script>alert('<!--')</script>
|
|
14 | | <script>alert('<!-- foo -->')</script>
|
|
15 | | <script>alert('-->')</script>
|
|
16 | | </body>
|
|
17 | `-> </html>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:6:1]
|
|
6 | ,-> <body>
|
|
7 | | <!-- test -->
|
|
8 | |
|
|
9 | | <!-- foo --><div>baz</div><!-- bar
|
|
10 | |
|
|
11 | | moo -->
|
|
12 | | <script><!-- alert(1) --></script>
|
|
13 | | <script>alert('<!--')</script>
|
|
14 | | <script>alert('<!-- foo -->')</script>
|
|
15 | | <script>alert('-->')</script>
|
|
16 | | </body>
|
|
17 | `-> </html>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:6:1]
|
|
6 | <body>
|
|
: ^
|
|
7 | <!-- test -->
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:6:1]
|
|
6 | <body>
|
|
: ^
|
|
7 | <!-- test -->
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:7:1]
|
|
7 | <!-- test -->
|
|
: ^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Comment
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:7:1]
|
|
7 | <!-- test -->
|
|
: ^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:7:1]
|
|
7 | ,-> <!-- test -->
|
|
8 | `->
|
|
9 | <!-- foo --><div>baz</div><!-- bar
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:7:1]
|
|
7 | ,-> <!-- test -->
|
|
8 | `->
|
|
9 | <!-- foo --><div>baz</div><!-- bar
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:9:1]
|
|
9 | <!-- foo --><div>baz</div><!-- bar
|
|
: ^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Comment
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:9:1]
|
|
9 | <!-- foo --><div>baz</div><!-- bar
|
|
: ^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:9:1]
|
|
9 | <!-- foo --><div>baz</div><!-- bar
|
|
: ^^^^^^^^
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:9:1]
|
|
9 | <!-- foo --><div>baz</div><!-- bar
|
|
: ^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:9:1]
|
|
9 | <!-- foo --><div>baz</div><!-- bar
|
|
: ^^^
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:9:1]
|
|
9 | <!-- foo --><div>baz</div><!-- bar
|
|
: ^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:9:1]
|
|
9 | ,-> <!-- foo --><div>baz</div><!-- bar
|
|
10 | |
|
|
11 | `-> moo -->
|
|
`----
|
|
|
|
x Comment
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:9:1]
|
|
9 | ,-> <!-- foo --><div>baz</div><!-- bar
|
|
10 | |
|
|
11 | `-> moo -->
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:11:1]
|
|
11 | moo -->
|
|
: ^
|
|
12 | <script><!-- alert(1) --></script>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:11:1]
|
|
11 | moo -->
|
|
: ^
|
|
12 | <script><!-- alert(1) --></script>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:12:1]
|
|
12 | <script><!-- alert(1) --></script>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:12:1]
|
|
12 | <script><!-- alert(1) --></script>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:12:1]
|
|
12 | <script><!-- alert(1) --></script>
|
|
: ^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:12:1]
|
|
12 | <script><!-- alert(1) --></script>
|
|
: ^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:12:1]
|
|
12 | <script><!-- alert(1) --></script>
|
|
: ^
|
|
13 | <script>alert('<!--')</script>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:12:1]
|
|
12 | <script><!-- alert(1) --></script>
|
|
: ^
|
|
13 | <script>alert('<!--')</script>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:13:1]
|
|
13 | <script>alert('<!--')</script>
|
|
: ^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:13:1]
|
|
13 | <script>alert('<!--')</script>
|
|
: ^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:13:1]
|
|
13 | <script>alert('<!--')</script>
|
|
: ^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:13:1]
|
|
13 | <script>alert('<!--')</script>
|
|
: ^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:13:1]
|
|
13 | <script>alert('<!--')</script>
|
|
: ^
|
|
14 | <script>alert('<!-- foo -->')</script>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:13:1]
|
|
13 | <script>alert('<!--')</script>
|
|
: ^
|
|
14 | <script>alert('<!-- foo -->')</script>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:14:1]
|
|
14 | <script>alert('<!-- foo -->')</script>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:14:1]
|
|
14 | <script>alert('<!-- foo -->')</script>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:14:1]
|
|
14 | <script>alert('<!-- foo -->')</script>
|
|
: ^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:14:1]
|
|
14 | <script>alert('<!-- foo -->')</script>
|
|
: ^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:14:1]
|
|
14 | <script>alert('<!-- foo -->')</script>
|
|
: ^
|
|
15 | <script>alert('-->')</script>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:14:1]
|
|
14 | <script>alert('<!-- foo -->')</script>
|
|
: ^
|
|
15 | <script>alert('-->')</script>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:15:1]
|
|
15 | <script>alert('-->')</script>
|
|
: ^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:15:1]
|
|
15 | <script>alert('-->')</script>
|
|
: ^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:15:1]
|
|
15 | <script>alert('-->')</script>
|
|
: ^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:15:1]
|
|
15 | <script>alert('-->')</script>
|
|
: ^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:15:1]
|
|
15 | ,-> <script>alert('-->')</script>
|
|
16 | | </body>
|
|
17 | `-> </html>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/comment/basic/input.html:15:1]
|
|
15 | ,-> <script>alert('-->')</script>
|
|
16 | | </body>
|
|
17 | `-> </html>
|
|
`----
|