Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tscizzle opened this issue Nov 28, 2017 · 1 comment
Open

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

tscizzle opened this issue Nov 28, 2017 · 1 comment

Comments

@tscizzle
Copy link

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
Copy link
Owner

aslagle commented Dec 6, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants