mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
b8fe04f720
**Description:** This PR makes the error reporter print contexts. **Related issue:** - https://github.com/swc-project/swc/issues/6525.
436 lines
17 KiB
Plaintext
436 lines
17 KiB
Plaintext
|
|
x Document
|
|
,-[$DIR/tests/recovery/element/template/input.html:1:1]
|
|
1 | ,-> <!doctype html>
|
|
2 | | <html lang="en">
|
|
3 | | <head>
|
|
4 | | <title>Document</title>
|
|
5 | | </head>
|
|
6 | | <body>
|
|
7 | | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
8 | | </body>
|
|
9 | `-> </html>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:1:1]
|
|
1 | <!doctype html>
|
|
: ^^^^^^^^^^^^^^^
|
|
2 | <html lang="en">
|
|
`----
|
|
|
|
x DocumentType
|
|
,-[$DIR/tests/recovery/element/template/input.html:1:1]
|
|
1 | <!doctype html>
|
|
: ^^^^^^^^^^^^^^^
|
|
2 | <html lang="en">
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:1:1]
|
|
1 | <!doctype html>
|
|
2 | ,-> <html lang="en">
|
|
3 | | <head>
|
|
4 | | <title>Document</title>
|
|
5 | | </head>
|
|
6 | | <body>
|
|
7 | | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
8 | | </body>
|
|
9 | `-> </html>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:1:1]
|
|
1 | <!doctype html>
|
|
2 | ,-> <html lang="en">
|
|
3 | | <head>
|
|
4 | | <title>Document</title>
|
|
5 | | </head>
|
|
6 | | <body>
|
|
7 | | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
8 | | </body>
|
|
9 | `-> </html>
|
|
`----
|
|
|
|
x Attribute
|
|
,-[$DIR/tests/recovery/element/template/input.html:1:1]
|
|
1 | <!doctype html>
|
|
2 | <html lang="en">
|
|
: ^^^^^^^^^
|
|
3 | <head>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:2:1]
|
|
2 | <html lang="en">
|
|
3 | ,-> <head>
|
|
4 | | <title>Document</title>
|
|
5 | `-> </head>
|
|
6 | <body>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:2:1]
|
|
2 | <html lang="en">
|
|
3 | ,-> <head>
|
|
4 | | <title>Document</title>
|
|
5 | `-> </head>
|
|
6 | <body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:2:1]
|
|
2 | <html lang="en">
|
|
3 | ,-> <head>
|
|
4 | `-> <title>Document</title>
|
|
5 | </head>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/template/input.html:2:1]
|
|
2 | <html lang="en">
|
|
3 | ,-> <head>
|
|
4 | `-> <title>Document</title>
|
|
5 | </head>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^
|
|
5 | </head>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^
|
|
5 | </head>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^
|
|
5 | </head>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/template/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^
|
|
5 | </head>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^
|
|
5 | </head>
|
|
6 | <body>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/template/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^
|
|
5 | </head>
|
|
6 | <body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:4:1]
|
|
4 | <title>Document</title>
|
|
5 | </head>
|
|
: ^
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/template/input.html:4:1]
|
|
4 | <title>Document</title>
|
|
5 | </head>
|
|
: ^
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:5:1]
|
|
5 | </head>
|
|
6 | ,-> <body>
|
|
7 | | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
8 | `-> </body>
|
|
9 | </html>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:5:1]
|
|
5 | </head>
|
|
6 | ,-> <body>
|
|
7 | | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
8 | `-> </body>
|
|
9 | </html>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:5:1]
|
|
5 | </head>
|
|
6 | <body>
|
|
: ^
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
8 | </body>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/template/input.html:5:1]
|
|
5 | </head>
|
|
6 | <body>
|
|
: ^
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Attribute
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Attribute
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x DocumentFragment
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Attribute
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Attribute
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
|
|
x Element
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^^^^^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
: ^^^^^^
|
|
8 | </body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | ,-> <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
8 | `-> </body>
|
|
9 | </html>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/template/input.html:6:1]
|
|
6 | <body>
|
|
7 | ,-> <div id="tmplParent"><template id="tmpl1"><table id="tbl"><tr><td>Cell 1</td></tr><div id="orphanDiv">Orphan div content</div><tr><td>Cell 2</td></tr></table></template></div>
|
|
8 | `-> </body>
|
|
9 | </html>
|
|
`----
|