mirror of https://github.com/sveltejs/svelte
fix: use snippet as parent element of snippets childrens in validator (#11463)
* fix: use snippet as parent element of snippets childrens in validator * Update packages/svelte/src/compiler/phases/2-analyze/validation.js * Update .changeset/wet-pears-remain.md --------- Co-authored-by: Rich Harris <hello@rich-harris.dev>pull/11521/head
parent
4fb4365567
commit
70419daf5f
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: skip parent element validation for snippet contents
|
@ -0,0 +1 @@
|
|||||||
|
[]
|
@ -0,0 +1,10 @@
|
|||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
{#snippet cell(v)}Value: {v}{/snippet}
|
||||||
|
{#each [1, 2, 3] as v}
|
||||||
|
<td>{@render cell(v)}</td>
|
||||||
|
{/each}
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
Loading…
Reference in new issue