Closed brunnerh closed 1 week ago
Ran into an error when adding a snippet in a table row, as the compiler does not seem to realize that the snippet content is not directly inserted into the element hierarchy at the point of definition, resulting in a false positive.
<table> <tbody> <tr> {#snippet cell(v)}Value: {v}{/snippet} {#each [1, 2, 3] as v} <td>{@render cell(v)}</td> {/each} </tr> </tbody> </table>
Text node is invalid inside <tr>
<tr>
REPL
No response
annoyance
Describe the bug
Ran into an error when adding a snippet in a table row, as the compiler does not seem to realize that the snippet content is not directly inserted into the element hierarchy at the point of definition, resulting in a false positive.
Reproduction
REPL
Logs
No response
System Info
Severity
annoyance