swc/crates/swc_html_parser/tests/recovery/element/h1/output.stderr
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

113 lines
3.2 KiB
Plaintext

x Heading cannot be a child of another heading
,-[$DIR/tests/recovery/element/h1/input.html:6:1]
6 | <body>
7 | <h1>test<h1>test</h1></h1>
: ^^^^
8 | <h2>test<h1>test</h1></h2>
`----
x Stray end tag "h1"
,-[$DIR/tests/recovery/element/h1/input.html:6:1]
6 | <body>
7 | <h1>test<h1>test</h1></h1>
: ^^^^^
8 | <h2>test<h1>test</h1></h2>
`----
x Heading cannot be a child of another heading
,-[$DIR/tests/recovery/element/h1/input.html:7:1]
7 | <h1>test<h1>test</h1></h1>
8 | <h2>test<h1>test</h1></h2>
: ^^^^
9 | <h3>test<h1>test</h1></h3>
`----
x Stray end tag "h2"
,-[$DIR/tests/recovery/element/h1/input.html:7:1]
7 | <h1>test<h1>test</h1></h1>
8 | <h2>test<h1>test</h1></h2>
: ^^^^^
9 | <h3>test<h1>test</h1></h3>
`----
x Heading cannot be a child of another heading
,-[$DIR/tests/recovery/element/h1/input.html:8:1]
8 | <h2>test<h1>test</h1></h2>
9 | <h3>test<h1>test</h1></h3>
: ^^^^
10 | <h4>test<h1>test</h1></h4>
`----
x Stray end tag "h3"
,-[$DIR/tests/recovery/element/h1/input.html:8:1]
8 | <h2>test<h1>test</h1></h2>
9 | <h3>test<h1>test</h1></h3>
: ^^^^^
10 | <h4>test<h1>test</h1></h4>
`----
x Heading cannot be a child of another heading
,-[$DIR/tests/recovery/element/h1/input.html:9:1]
9 | <h3>test<h1>test</h1></h3>
10 | <h4>test<h1>test</h1></h4>
: ^^^^
11 | <h5>test<h1>test</h1></h5>
`----
x Stray end tag "h4"
,-[$DIR/tests/recovery/element/h1/input.html:9:1]
9 | <h3>test<h1>test</h1></h3>
10 | <h4>test<h1>test</h1></h4>
: ^^^^^
11 | <h5>test<h1>test</h1></h5>
`----
x Heading cannot be a child of another heading
,-[$DIR/tests/recovery/element/h1/input.html:10:1]
10 | <h4>test<h1>test</h1></h4>
11 | <h5>test<h1>test</h1></h5>
: ^^^^
12 | <h6>test<h1>test</h1></h6>
`----
x Stray end tag "h5"
,-[$DIR/tests/recovery/element/h1/input.html:10:1]
10 | <h4>test<h1>test</h1></h4>
11 | <h5>test<h1>test</h1></h5>
: ^^^^^
12 | <h6>test<h1>test</h1></h6>
`----
x Heading cannot be a child of another heading
,-[$DIR/tests/recovery/element/h1/input.html:11:1]
11 | <h5>test<h1>test</h1></h5>
12 | <h6>test<h1>test</h1></h6>
: ^^^^
13 | <h1>test<h2>test</h2></h1>
`----
x Stray end tag "h6"
,-[$DIR/tests/recovery/element/h1/input.html:11:1]
11 | <h5>test<h1>test</h1></h5>
12 | <h6>test<h1>test</h1></h6>
: ^^^^^
13 | <h1>test<h2>test</h2></h1>
`----
x Heading cannot be a child of another heading
,-[$DIR/tests/recovery/element/h1/input.html:12:1]
12 | <h6>test<h1>test</h1></h6>
13 | <h1>test<h2>test</h2></h1>
: ^^^^
14 | </body>
`----
x Stray end tag "h1"
,-[$DIR/tests/recovery/element/h1/input.html:12:1]
12 | <h6>test<h1>test</h1></h6>
13 | <h1>test<h2>test</h2></h1>
: ^^^^^
14 | </body>
`----