You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (Jira)" <ji...@apache.org> on 2020/10/22 16:34:00 UTC
[jira] [Resolved] (SLING-9829) data-sly-element should correctly
handle void elements
[ https://issues.apache.org/jira/browse/SLING-9829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Cotescu resolved SLING-9829.
---------------------------------
Resolution: Fixed
Fixed in [commit 66119ad|https://github.com/apache/sling-org-apache-sling-scripting-sightly-compiler/commit/66119ad], tested with [commit 6123d94|https://github.com/apache/sling-org-apache-sling-scripting-sightly-testing-content/commit/6123d94] and [commit b67bb1b|https://github.com/apache/sling-org-apache-sling-scripting-sightly-testing/commit/b67bb1b].
> 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 Sightly Engine 1.0.0, Scripting HTL Compiler 1.0.0, Scripting HTL Compiler 1.1.0-1.4.0, Scripting HTL Compiler 1.2.0-1.4.0
> Reporter: Radu Cotescu
> Assignee: Radu Cotescu
> Priority: Major
> Fix For: Scripting HTL Compiler 1.2.12-1.4.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)