vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
47.67k stars 8.33k forks source link

v-for 和temple 会渲染出 “” 的节点 #12048

Closed zixiao144 closed 1 month ago

zixiao144 commented 1 month ago

Vue version

3.5

Link to minimal reproduction

..

Steps to reproduce

v-for 和temple 会渲染出 “” 的节点

What is expected?

v-for 和temple 不会渲染出 “” 的节点

What is actually happening?

v-for 和temple 会渲染出 “” 的节点

System Info

No response

Any additional comments?

No response

edison1105 commented 1 month ago

Please follow the issue requirement and provide a minimal reproduction.

yyx990803 commented 1 month ago

Those empty text nodes are fragment anchors. This is expected behavior.