Skip to content

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

@cossssmin

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions