Skip to content

a <template> vnode rendered is not compatible with the standard native browser <template> element. #4613

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

Open
lidlanca opened this issue Sep 16, 2021 · 1 comment

Comments

@lidlanca
Copy link
Contributor

Version

3.2.11

Reproduction link

sfc playground

Steps to reproduce

when rendering a <template> vnode, the content of the template is appended directly to the template element instead of the template DocumentFragment.

This result in non standard template element

What is expected?

elements rendered by vue should follow the standard and should not deviate from how a standard template tag is being handled by the browser.

What is actually happening?

vue directly appends children to the template element instead of the template Fragment / content


https://html.spec.whatwg.org/multipage/scripting.html#the-template-element
https://html.spec.whatwg.org/multipage/syntax.html#template-syntax

image

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