mirror of https://github.com/sveltejs/svelte
fix: improve invalid nested interactive element error (#10199)
* fix: improve invalid nested interactive element error * add test * revisepull/10188/head
parent
db8cba3216
commit
b04c5bb398
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: improve invalid nested interactive element error
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "invalid-node-placement",
|
||||
"message": "<a> is invalid inside <a>",
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 6
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 34
|
||||
}
|
||||
}
|
||||
]
|
@ -0,0 +1,7 @@
|
||||
<div>
|
||||
<a href="/foo">
|
||||
<div>
|
||||
<p><a href="/foo">{`hello`}</a></p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
Loading…
Reference in new issue