Skip to content

Compiling code with stray closing tag throws #321

@Conduitry

Description

@Conduitry

Compiling code with a stray closing tag throws an error here as parent is undefined. This used to be more elegantly handled in 1.8.0.

REPL - 1.8.0 - 1.8.1

(I actually noticed this because in a project I had been using some (apparently!) bad markup, and had a <pre> element inside of a <p>. With 1.8.1, this now automatically closes the <p> when it reaches the <pre>, and then Svelte gets confused when it later hits the </p>.)

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