Skip to content

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

@tscizzle

Description

@tscizzle

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions