adobe / htl-spec

HTML Template Language Specification
Apache License 2.0
280 stars 145 forks source link

Rendering of ${['']} in an attribute inconsistent with the spec #39

Closed toniedzwiedz closed 6 years ago

toniedzwiedz commented 7 years ago

According to the specification, attributes containing an array with just an empty string should be rendered with an empty value:

<!--/* But an array containing just an empty string doesn't get removed: */-->
<div title="${['']}"></div>
<!--/* outputs: */-->
<div title=""></div>

However, when I try the same code on my AEM instance, I get the following output:

<div></div>

I'm using AEM 6.2 and the following bundles:

Is this an error in the specification or is this a bug in my specific version and one of the bundles requires an update?

vladbailescu commented 7 years ago

This seems to be an implementation bug. I will update the HTL TCK with a relevant test, file an issue in SLING and submit a patch.

toniedzwiedz commented 7 years ago

Thanks @vladbailescu

mehtarachna commented 4 years ago

Hi, is this issue resolved? seems to be not working for me on 6.4.5

raducotescu commented 4 years ago

@mehtarachna, if you have any implementation issues please use the official support channels for reporting them. For AEM, the instructions are available at https://helpx.adobe.com/experience-manager/kb/accessing-aem-support-portal.html.