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)?
If my template, passed in as
noDataTmpl: Template.nothingThere
, is as such:The
div
with "Hi Hi Hi" gets moved outside of thep
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 aspan
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!