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

Template Tags Being Stripped #11292

Closed
Daeluse opened this issue Apr 7, 2020 · 1 comment
Closed

Template Tags Being Stripped #11292

Daeluse opened this issue Apr 7, 2020 · 1 comment

Comments

@Daeluse
Copy link

Daeluse commented Apr 7, 2020

Version

2.6.11

Reproduction link

https://stackblitz.com/edit/vuejs-template-issue

Steps to reproduce

Using the minimal reproduction link:

  1. Visit the minimal reproduction link
  2. Inspect the document under both "Template Content" headers.
    • Notice that under the first header the template tags are being stripped.
    • Notice that under the second header the template tags are being preserved.

To re-create this in a sandbox of your own, you can perform the following:

  1. Create a block level element with the v-pre directive and place template tags a children.
    • Observe the template tags being removed.
  2. Add any VueJS compiled element as a sibling to the block level element with v-pre.
    • Observe the template tags are being preserved.

What is expected?

In both cases the presence of v-pre should instruct Vue not to remove the template tags.

What is actually happening?

v-pre is only preserving the template tags when a VueJS compiled element is sibling to the element with the v-pre tag.


I am working on integrating Web Components into VueJS applications and would like to leverage the power of the Shadow DOM.

@posva
Copy link
Member

posva commented Apr 7, 2020

Duplicate of #10717

@posva posva marked this as a duplicate of #10717 Apr 7, 2020
@posva posva closed this as completed Apr 7, 2020
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