Skip to content

Content type HTML should be allowed inside of HTMLCOMMENT type. #136

Description

@vhenzl

With Latte 2.4 I've run into problems with blocks inside of (conditional) HTML comments.

Let's say, I have @layout.latte template like this:

<body>
  {include content}
  <!--[if IE]>
    {block onlyIE}{/block}
  <![endif]-->
</body>

If I override onlyIE block in a page template I get User Warning: Overridden block onlyIE with content type HTMLCOMMENT by incompatible type HTML.
Also, I get similar warning if I try to include a block: Including block onlyIE with content type HTML into incompatible type HTMLCOMMENT.

IMO, there isn't any reason this shouldn't be allowed. Is it?

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