mirror of https://github.com/sveltejs/svelte
better error message for mismatched tags due to autoclosing (#5060)
parent
40987b7780
commit
3dad14f0e1
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"code": "invalid-closing-tag",
|
||||||
|
"message": "</p> attempted to close an element that was not open",
|
||||||
|
"pos": 38,
|
||||||
|
"start": {
|
||||||
|
"character": 38,
|
||||||
|
"column": 0,
|
||||||
|
"line": 5
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
<div>
|
||||||
|
<p>
|
||||||
|
<pre>pre tag</pre>
|
||||||
|
</div>
|
||||||
|
</p>
|
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"code": "invalid-closing-tag",
|
||||||
|
"message": "</p> attempted to close <p> that was already automatically closed by <pre>",
|
||||||
|
"pos": 24,
|
||||||
|
"start": {
|
||||||
|
"character": 24,
|
||||||
|
"column": 0,
|
||||||
|
"line": 3
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
<pre>pre tag</pre>
|
||||||
|
</p>
|
Loading…
Reference in new issue