mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
128 lines
2.7 KiB
Plaintext
128 lines
2.7 KiB
Plaintext
|
|
x Document
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:1:1]
|
|
1 | ,-> <!doctype html>
|
|
2 | | <script type="text/javascript">
|
|
3 | | //<![CDATA[
|
|
4 | | document.write("<");
|
|
5 | | //]]>
|
|
6 | | </script>
|
|
7 | | <script>
|
|
8 | | let foo = "<!--<script>-->";
|
|
9 | |
|
|
10 | | console.log(foo);
|
|
11 | `-> </script>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:1:1]
|
|
1 | <!doctype html>
|
|
: ^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x DocumentType
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:1:1]
|
|
1 | <!doctype html>
|
|
: ^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
|
|
x Element
|
|
|
|
x Child
|
|
|
|
x Element
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:2:1]
|
|
2 | ,-> <script type="text/javascript">
|
|
3 | | //<![CDATA[
|
|
4 | | document.write("<");
|
|
5 | `-> //]]>
|
|
6 | </script>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:2:1]
|
|
2 | ,-> <script type="text/javascript">
|
|
3 | | //<![CDATA[
|
|
4 | | document.write("<");
|
|
5 | `-> //]]>
|
|
6 | </script>
|
|
`----
|
|
|
|
x Attribute
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:2:1]
|
|
2 | <script type="text/javascript">
|
|
: ^^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:2:1]
|
|
2 | ,-> <script type="text/javascript">
|
|
3 | | //<![CDATA[
|
|
4 | | document.write("<");
|
|
5 | `-> //]]>
|
|
6 | </script>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:2:1]
|
|
2 | ,-> <script type="text/javascript">
|
|
3 | | //<![CDATA[
|
|
4 | | document.write("<");
|
|
5 | `-> //]]>
|
|
6 | </script>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:6:1]
|
|
6 | </script>
|
|
: ^
|
|
7 | <script>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:6:1]
|
|
6 | </script>
|
|
: ^
|
|
7 | <script>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:7:1]
|
|
7 | ,-> <script>
|
|
8 | | let foo = "<!--<script>-->";
|
|
9 | |
|
|
10 | `-> console.log(foo);
|
|
11 | </script>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:7:1]
|
|
7 | ,-> <script>
|
|
8 | | let foo = "<!--<script>-->";
|
|
9 | |
|
|
10 | `-> console.log(foo);
|
|
11 | </script>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:7:1]
|
|
7 | ,-> <script>
|
|
8 | | let foo = "<!--<script>-->";
|
|
9 | |
|
|
10 | `-> console.log(foo);
|
|
11 | </script>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/element/script-cdata/input.html:7:1]
|
|
7 | ,-> <script>
|
|
8 | | let foo = "<!--<script>-->";
|
|
9 | |
|
|
10 | `-> console.log(foo);
|
|
11 | </script>
|
|
`----
|