aslagle / reactive-table

A reactive table designed for Meteor
https://atmospherejs.com/aslagle/reactive-table
Other
328 stars 137 forks source link

`noDataTmpl` changes the DOM structure of the passed-in template #483

Open tscizzle opened 6 years ago

tscizzle commented 6 years ago

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 6 years ago

I have no idea how that would happen - it's definitely not intentional.