Skip to content

content for literal <template> elements is not readable. #6272

@LeaVerou

Description

@LeaVerou

Vue version

3.2.37

Link to minimal reproduction

https://codepen.io/leaverou/pen/abYByOO?editors=1010

Steps to reproduce

Visit testcase.

What is expected?

Both custom elements should render identically

What is actually happening?

The custom element inside the Vue app renders an empty iframe, because the <template> element's content is being emptied by Vue.
Template elements inside the app but not inside a custom element do retain their contents.

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions