swc/crates/swc_html_parser/tests/recovery/comment/cdata-1/span.rust-debug
Donny/강동윤 b8fe04f720
feat(common): Add contexts to the error messages (#6526)
**Description:**

This PR makes the error reporter print contexts.

**Related issue:**

 - https://github.com/swc-project/swc/issues/6525.
2022-11-29 00:56:47 +09:00

128 lines
4.0 KiB
Plaintext

x Document
,-[$DIR/tests/recovery/comment/cdata-1/input.html:1:1]
1 | ,-> <![CDATA[
2 | | Within this Character Data block I can
3 | | use double dashes as much as I want (along with <, &, ', and ")
4 | | *and* %MyParamEntity; will be expanded to the text
5 | | "Has been expanded" ... however, I can't use
6 | | the CEND sequence. If I need to use CEND I must escape one of the
7 | | brackets or the greater-than sign using concatenated CDATA sections.
8 | | ]]>
9 | | <div>test</div>
10 | | <![cdata[
11 | | Within this Character Data block I can
12 | | use double dashes as much as I want (along with <, &, ', and ")
13 | | *and* %MyParamEntity; will be expanded to the text
14 | | "Has been expanded" ... however, I can't use
15 | | the CEND sequence. If I need to use CEND I must escape one of the
16 | | brackets or the greater-than sign using concatenated CDATA sections.
17 | `-> ]]>
`----
x Child
,-[$DIR/tests/recovery/comment/cdata-1/input.html:1:1]
1 | ,-> <![CDATA[
2 | | Within this Character Data block I can
3 | | use double dashes as much as I want (along with <, &, ', and ")
4 | | *and* %MyParamEntity; will be expanded to the text
5 | | "Has been expanded" ... however, I can't use
6 | | the CEND sequence. If I need to use CEND I must escape one of the
7 | | brackets or the greater-than sign using concatenated CDATA sections.
8 | `-> ]]>
9 | <div>test</div>
`----
x Comment
,-[$DIR/tests/recovery/comment/cdata-1/input.html:1:1]
1 | ,-> <![CDATA[
2 | | Within this Character Data block I can
3 | | use double dashes as much as I want (along with <, &, ', and ")
4 | | *and* %MyParamEntity; will be expanded to the text
5 | | "Has been expanded" ... however, I can't use
6 | | the CEND sequence. If I need to use CEND I must escape one of the
7 | | brackets or the greater-than sign using concatenated CDATA sections.
8 | `-> ]]>
9 | <div>test</div>
`----
x Child
x Element
x Child
,-[$DIR/tests/recovery/comment/cdata-1/input.html:8:1]
8 | ]]>
9 | <div>test</div>
: ^^^^^^^^^^^^^^^
10 | <![cdata[
`----
x Element
,-[$DIR/tests/recovery/comment/cdata-1/input.html:8:1]
8 | ]]>
9 | <div>test</div>
: ^^^^^^^^^^^^^^^
10 | <![cdata[
`----
x Child
,-[$DIR/tests/recovery/comment/cdata-1/input.html:8:1]
8 | ]]>
9 | <div>test</div>
: ^^^^
10 | <![cdata[
`----
x Text
,-[$DIR/tests/recovery/comment/cdata-1/input.html:8:1]
8 | ]]>
9 | <div>test</div>
: ^^^^
10 | <![cdata[
`----
x Child
,-[$DIR/tests/recovery/comment/cdata-1/input.html:8:1]
8 | ]]>
9 | <div>test</div>
: ^
10 | <![cdata[
11 | Within this Character Data block I can
`----
x Text
,-[$DIR/tests/recovery/comment/cdata-1/input.html:8:1]
8 | ]]>
9 | <div>test</div>
: ^
10 | <![cdata[
11 | Within this Character Data block I can
`----
x Child
,-[$DIR/tests/recovery/comment/cdata-1/input.html:9:1]
9 | <div>test</div>
10 | ,-> <![cdata[
11 | | Within this Character Data block I can
12 | | use double dashes as much as I want (along with <, &, ', and ")
13 | | *and* %MyParamEntity; will be expanded to the text
14 | | "Has been expanded" ... however, I can't use
15 | | the CEND sequence. If I need to use CEND I must escape one of the
16 | | brackets or the greater-than sign using concatenated CDATA sections.
17 | `-> ]]>
`----
x Comment
,-[$DIR/tests/recovery/comment/cdata-1/input.html:9:1]
9 | <div>test</div>
10 | ,-> <![cdata[
11 | | Within this Character Data block I can
12 | | use double dashes as much as I want (along with <, &, ', and ")
13 | | *and* %MyParamEntity; will be expanded to the text
14 | | "Has been expanded" ... however, I can't use
15 | | the CEND sequence. If I need to use CEND I must escape one of the
16 | | brackets or the greater-than sign using concatenated CDATA sections.
17 | `-> ]]>
`----