[
https://issues.apache.org/jira/browse/SLING-6169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Radu Cotescu resolved SLING-6169.
---------------------------------
Resolution: Not A Problem
Assignee: Radu Cotescu
[~amuthmann], that's actually not an HTL error. The markup, due to the wrongly
added double quotes, is interpreted by the HTML parser as a Text Node. In this
context HTL works correctly...
Unfortunately we cannot throw compilation errors for invalid HTML markup.
> HTL Compiler does not detect missing quotes
> -------------------------------------------
>
> Key: SLING-6169
> URL: https://issues.apache.org/jira/browse/SLING-6169
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting HTL Compiler 1.0.2, HTL Maven Plugin 1.0.0
> Reporter: Alexander Muthmann
> Assignee: Radu Cotescu
>
> While evaluating the HTL Maven Plugin I found a possible bug in the HTL
> compiler:
> The following statement is correct and the plugin does not report an error:
> <sly data-sly-test="${!headline}">
> A missing "}" causes the plugin to fail:
> <sly data-sly-test="${!headline">
> But a missing "\"" does not:
> <sly data-sly-test=${!headline}">
> As this causes htl to render out the statement instead of evaluating it, I'd
> suspect this is a bug.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)