Skip to content

Migrate: svelte fragments with dashes create invalid code #13649

@paoloricciuti

Description

@paoloricciuti

Describe the bug

<Stuff>
 <svelte:fragment slot="sticky-bottom">
	 cool
 </svelte:fragment>
</Stuff>

this is migrated to

<Stuff>
 {#snippet sticky-bottom()}
	
		 cool
	 
	{/snippet}
</Stuff>

which is invalid code.

We should either set a TODO or migrate the snippet to be outside and passed as a prop.

Reproduction

repl

Logs

No response

System Info

repl

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions