Skip to content

Misleading validation for unclosed tags mixed with html #164

@a3kov

Description

@a3kov

I wasn't sure if you are accepting bug reports for liquid mixed with html. Anyway, maybe you are interested in fixing this. Let's suppose I forgot to close the variable tag.

> Solid.parse("{{ abc <b>some text</b>")
{:error,
 %Solid.TemplateError{
   errors: [
     %Solid.ParserError{
       reason: "Unexpected character '/'",
       meta: %{column: 21, line: 1},
       text: "{{ abc <b>some text</b>"
     }
   ]
 }}

I would expect to receive an error mentioning unclosed tag or something. "/" is definitely correct here as it belongs to the html part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions