`noDataTmpl` changes the DOM structure of the passed-in template
Opened this issue · 1 comments
tscizzle commented
If my template, passed in as noDataTmpl: Template.nothingThere
, is as such:
<template name="nothingThere">
<div>
<p>
<div> Hi Hi Hi </div>
</p>
</div>
</template>
The div
with "Hi Hi Hi" gets moved outside of the p
tag.
I think it has to do with inline elements vs. block elements or something, and block elements not being not meant to be inside inline elements. Because making the "Hi Hi Hi" div
be a span
instead makes it work just fine.
Is this expected / intentional? If not, any chance of fixing (or might there be some workaround)?
Thanks for the package!
aslagle commented
I have no idea how that would happen - it's definitely not intentional.