adobe / htl-spec

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

Self closing DIV when using 'html' context #22

Closed danchapman-pearson closed 7 years ago

danchapman-pearson commented 8 years ago

When I do: ${'<div></div>' @context='html'}

It outputs invalid HTML, it self-closes the element: <div/>

Only a set number of elements are permitted to self-close - http://xahlee.info/js/html5_non-closing_tag.html.

raducotescu commented 7 years ago

@danchapman-pearson, I think this issue refers to actually the Apache Sling implementation, specifically to https://issues.apache.org/jira/browse/SLING-5841. Since this is an implementation detail, with several workarounds, I'll close this issue as invalid, since it's not related to the actual language specification.