Skip to content

if/elseif fails if there's an HTML comment between the tags #150

Description

@cossssmin

Consider the code:

<if condition="1">
  Foo
</if>
<!-- Comment -->
<elseif condition="0">
  Bar
</elseif>

It should display Foo, but instead it displays Foo Bar.

When HTML comment is removed it works as expected.

Originally reported in maizzle/framework#982 by @vkovic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions