mirror of https://github.com/sveltejs/svelte
fix: add compiler error for invalid <p> contents (#10201)
* fix: add compiler error for invalid <p> contents * add testpull/10207/head
parent
73c5983e9a
commit
c7a7725abd
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: add compiler error for invalid <p> contents
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "invalid-node-placement",
|
||||
"message": "<div> is invalid inside <p>",
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 3
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 17
|
||||
}
|
||||
}
|
||||
]
|
@ -0,0 +1,7 @@
|
||||
<div>
|
||||
<p>
|
||||
<span>
|
||||
<div>foo</div>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
Loading…
Reference in new issue