Skip to content

Wrong migration for self closing tags with slot attribute #17196

@paoloricciuti

Description

@paoloricciuti

Describe the bug

This

<Component>
	<div slot="something" />
</Component>

is currently migrated to

<Component>
	{#snippet something()}
		<div >
	{/snippet}</div>
</Component>

which is completely broken.

Reproduction

  1. Go here
  2. Press migrate
  3. Observe the broken state

Logs

System Info

repl

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions