Radu Cotescu created SLING-9829:
-----------------------------------
Summary: data-sly-element should correctly handle void elements
Key: SLING-9829
URL: https://issues.apache.org/jira/browse/SLING-9829
Project: Sling
Issue Type: Bug
Components: Scripting
Affects Versions: Scripting HTL Compiler 1.2.0-1.4.0, Scripting HTL
Compiler 1.1.0-1.4.0, Scripting HTL Compiler 1.0.0, Scripting Sightly Engine
1.0.0
Reporter: Radu Cotescu
Assignee: Radu Cotescu
Fix For: Scripting HTL Compiler 1.2.12-1.4.0
The current implementation of {{data-sly-element}} doesn't correctly handle
void elements which will replace the original element on which the block
element was placed:
When {{$\{item.element.name}}} evaluates to {{link}} or {{meta}}, the element
will have a closing tag in the following example, although both {{link}} and
{{meta}} are void elements:
{code:html}
<script data-sly-element="${item.element.name @ context='unsafe'}"></script>
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)