swc/crates/swc_html_parser/tests/recovery/element/td/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

697 lines
18 KiB
Plaintext

x Document
,-[$DIR/tests/recovery/element/td/input.html:1:1]
1 | ,-> <!doctype html>
2 | | <html lang="en">
3 | | <head>
4 | | <meta charset="UTF-8">
5 | | <meta name="viewport"
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | | <title>Document</title>
9 | | </head>
10 | | <body>
11 | | <table>
12 | | <tr>
13 | | <td>
14 | | <tr>
15 | | <svg>
16 | | <td></td>
17 | | </svg>
18 | | <td>
19 | | </tr>
20 | | </table>
21 | | </body>
22 | `-> </html>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:1:1]
1 | <!doctype html>
: ^^^^^^^^^^^^^^^
2 | <html lang="en">
`----
x DocumentType
,-[$DIR/tests/recovery/element/td/input.html:1:1]
1 | <!doctype html>
: ^^^^^^^^^^^^^^^
2 | <html lang="en">
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:1:1]
1 | <!doctype html>
2 | ,-> <html lang="en">
3 | | <head>
4 | | <meta charset="UTF-8">
5 | | <meta name="viewport"
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | | <title>Document</title>
9 | | </head>
10 | | <body>
11 | | <table>
12 | | <tr>
13 | | <td>
14 | | <tr>
15 | | <svg>
16 | | <td></td>
17 | | </svg>
18 | | <td>
19 | | </tr>
20 | | </table>
21 | | </body>
22 | `-> </html>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:1:1]
1 | <!doctype html>
2 | ,-> <html lang="en">
3 | | <head>
4 | | <meta charset="UTF-8">
5 | | <meta name="viewport"
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | | <title>Document</title>
9 | | </head>
10 | | <body>
11 | | <table>
12 | | <tr>
13 | | <td>
14 | | <tr>
15 | | <svg>
16 | | <td></td>
17 | | </svg>
18 | | <td>
19 | | </tr>
20 | | </table>
21 | | </body>
22 | `-> </html>
`----
x Attribute
,-[$DIR/tests/recovery/element/td/input.html:1:1]
1 | <!doctype html>
2 | <html lang="en">
: ^^^^^^^^^
3 | <head>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | | <meta charset="UTF-8">
5 | | <meta name="viewport"
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | | <title>Document</title>
9 | `-> </head>
10 | <body>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | | <meta charset="UTF-8">
5 | | <meta name="viewport"
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | | <title>Document</title>
9 | `-> </head>
10 | <body>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | `-> <meta charset="UTF-8">
5 | <meta name="viewport"
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | `-> <meta charset="UTF-8">
5 | <meta name="viewport"
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:3:1]
3 | <head>
4 | <meta charset="UTF-8">
: ^^^^^^^^^^^^^^^^^^^^^^
5 | <meta name="viewport"
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:3:1]
3 | <head>
4 | <meta charset="UTF-8">
: ^^^^^^^^^^^^^^^^^^^^^^
5 | <meta name="viewport"
`----
x Attribute
,-[$DIR/tests/recovery/element/td/input.html:3:1]
3 | <head>
4 | <meta charset="UTF-8">
: ^^^^^^^^^^^^^^^
5 | <meta name="viewport"
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:3:1]
3 | <head>
4 | ,-> <meta charset="UTF-8">
5 | `-> <meta name="viewport"
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:3:1]
3 | <head>
4 | ,-> <meta charset="UTF-8">
5 | `-> <meta name="viewport"
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:4:1]
4 | <meta charset="UTF-8">
5 | ,-> <meta name="viewport"
6 | `-> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:4:1]
4 | <meta charset="UTF-8">
5 | ,-> <meta name="viewport"
6 | `-> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
`----
x Attribute
,-[$DIR/tests/recovery/element/td/input.html:4:1]
4 | <meta charset="UTF-8">
5 | <meta name="viewport"
: ^^^^^^^^^^^^^^^
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
`----
x Attribute
,-[$DIR/tests/recovery/element/td/input.html:5:1]
5 | <meta name="viewport"
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:5:1]
5 | <meta name="viewport"
6 | ,-> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | `-> <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:5:1]
5 | <meta name="viewport"
6 | ,-> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | `-> <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 | <title>Document</title>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 | <title>Document</title>
`----
x Attribute
,-[$DIR/tests/recovery/element/td/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 | <title>Document</title>
`----
x Attribute
,-[$DIR/tests/recovery/element/td/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
: ^^^^^^^^^^^^^^^^^
8 | <title>Document</title>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | ,-> <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | `-> <title>Document</title>
9 | </head>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | ,-> <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | `-> <title>Document</title>
9 | </head>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^^^^^^^^^^^^^^^^^^^^^^^
9 | </head>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^^^^^^^^^^^^^^^^^^^^^^^
9 | </head>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^^^^^^^^
9 | </head>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^^^^^^^^
9 | </head>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^
9 | </head>
10 | <body>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^
9 | </head>
10 | <body>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:8:1]
8 | <title>Document</title>
9 | </head>
: ^
10 | <body>
11 | <table>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:8:1]
8 | <title>Document</title>
9 | </head>
: ^
10 | <body>
11 | <table>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:9:1]
9 | </head>
10 | ,-> <body>
11 | | <table>
12 | | <tr>
13 | | <td>
14 | | <tr>
15 | | <svg>
16 | | <td></td>
17 | | </svg>
18 | | <td>
19 | | </tr>
20 | | </table>
21 | `-> </body>
22 | </html>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:9:1]
9 | </head>
10 | ,-> <body>
11 | | <table>
12 | | <tr>
13 | | <td>
14 | | <tr>
15 | | <svg>
16 | | <td></td>
17 | | </svg>
18 | | <td>
19 | | </tr>
20 | | </table>
21 | `-> </body>
22 | </html>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:9:1]
9 | </head>
10 | <body>
: ^
11 | <table>
12 | <tr>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:9:1]
9 | </head>
10 | <body>
: ^
11 | <table>
12 | <tr>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:14:1]
14 | <tr>
15 | ,-> <svg>
16 | | <td></td>
17 | `-> </svg>
18 | <td>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:14:1]
14 | <tr>
15 | ,-> <svg>
16 | | <td></td>
17 | `-> </svg>
18 | <td>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:14:1]
14 | <tr>
15 | ,-> <svg>
16 | `-> <td></td>
17 | </svg>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:14:1]
14 | <tr>
15 | ,-> <svg>
16 | `-> <td></td>
17 | </svg>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:15:1]
15 | <svg>
16 | <td></td>
: ^^^^^^^^^
17 | </svg>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:15:1]
15 | <svg>
16 | <td></td>
: ^^^^^^^^^
17 | </svg>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:15:1]
15 | <svg>
16 | ,-> <td></td>
17 | `-> </svg>
18 | <td>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:15:1]
15 | <svg>
16 | ,-> <td></td>
17 | `-> </svg>
18 | <td>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:10:1]
10 | <body>
11 | ,-> <table>
12 | | <tr>
13 | | <td>
14 | | <tr>
15 | | <svg>
16 | | <td></td>
17 | | </svg>
18 | | <td>
19 | | </tr>
20 | `-> </table>
21 | </body>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:10:1]
10 | <body>
11 | ,-> <table>
12 | | <tr>
13 | | <td>
14 | | <tr>
15 | | <svg>
16 | | <td></td>
17 | | </svg>
18 | | <td>
19 | | </tr>
20 | `-> </table>
21 | </body>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:10:1]
10 | <body>
11 | ,-> <table>
12 | `-> <tr>
13 | <td>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:10:1]
10 | <body>
11 | ,-> <table>
12 | `-> <tr>
13 | <td>
`----
x Child
x Element
x Child
,-[$DIR/tests/recovery/element/td/input.html:11:1]
11 | <table>
12 | ,-> <tr>
13 | | <td>
14 | `-> <tr>
15 | <svg>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:11:1]
11 | <table>
12 | ,-> <tr>
13 | | <td>
14 | `-> <tr>
15 | <svg>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:11:1]
11 | <table>
12 | ,-> <tr>
13 | `-> <td>
14 | <tr>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:11:1]
11 | <table>
12 | ,-> <tr>
13 | `-> <td>
14 | <tr>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:12:1]
12 | <tr>
13 | ,-> <td>
14 | `-> <tr>
15 | <svg>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:12:1]
12 | <tr>
13 | ,-> <td>
14 | `-> <tr>
15 | <svg>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:12:1]
12 | <tr>
13 | ,-> <td>
14 | `-> <tr>
15 | <svg>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:12:1]
12 | <tr>
13 | ,-> <td>
14 | `-> <tr>
15 | <svg>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:13:1]
13 | <td>
14 | ,-> <tr>
15 | | <svg>
16 | | <td></td>
17 | | </svg>
18 | | <td>
19 | `-> </tr>
20 | </table>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:13:1]
13 | <td>
14 | ,-> <tr>
15 | | <svg>
16 | | <td></td>
17 | | </svg>
18 | | <td>
19 | `-> </tr>
20 | </table>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:13:1]
13 | <td>
14 | ,-> <tr>
15 | | <svg>
16 | | <td></td>
17 | | </svg>
18 | `-> <td>
19 | </tr>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:13:1]
13 | <td>
14 | ,-> <tr>
15 | | <svg>
16 | | <td></td>
17 | | </svg>
18 | `-> <td>
19 | </tr>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:17:1]
17 | </svg>
18 | ,-> <td>
19 | `-> </tr>
20 | </table>
`----
x Element
,-[$DIR/tests/recovery/element/td/input.html:17:1]
17 | </svg>
18 | ,-> <td>
19 | `-> </tr>
20 | </table>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:17:1]
17 | </svg>
18 | ,-> <td>
19 | `-> </tr>
20 | </table>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:17:1]
17 | </svg>
18 | ,-> <td>
19 | `-> </tr>
20 | </table>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:18:1]
18 | <td>
19 | </tr>
: ^
20 | </table>
21 | </body>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:18:1]
18 | <td>
19 | </tr>
: ^
20 | </table>
21 | </body>
`----
x Child
,-[$DIR/tests/recovery/element/td/input.html:19:1]
19 | </tr>
20 | ,-> </table>
21 | `-> </body>
22 | </html>
`----
x Text
,-[$DIR/tests/recovery/element/td/input.html:19:1]
19 | </tr>
20 | ,-> </table>
21 | `-> </body>
22 | </html>
`----