Skip to content

Svelte 5: only block root tags are checked for being closed #12635

Open
@7nik

Description

@7nik

Describe the bug

The error of the non-closed tag isn't emitted for the content of the implicit children snippet.
Only block (component root or any {#*} block) root tags are checked for being closed, while nested tags aren't checked. Components seem to be excluded from the "block" definition here.

Reproduction

REPL

Logs

No response

System Info

Svelte 5

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions