mirror of https://github.com/sveltejs/svelte
fix: skip comment nodes in snippet validation logic (#13936)
parent
37fa34c4ad
commit
83a5eaac8e
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: skip comment nodes in snippet validation logic
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
const { children } = $props();
|
||||
</script>
|
||||
|
||||
{@render children()}
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `The content`
|
||||
});
|
@ -0,0 +1,10 @@
|
||||
<script>
|
||||
import Child from "./Child.svelte"
|
||||
</script>
|
||||
|
||||
<Child>
|
||||
<!-- I'm just a poor comment -->
|
||||
{#snippet children()}
|
||||
The content
|
||||
{/snippet}
|
||||
</Child>
|
Loading…
Reference in new issue