Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Content missing after <template> compilation #11879

Closed
pengzhanbo opened this issue Sep 10, 2024 · 2 comments
Closed

Content missing after <template> compilation #11879

pengzhanbo opened this issue Sep 10, 2024 · 2 comments
Labels
has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working regression scope: sfc

Comments

@pengzhanbo
Copy link

Vue version

3.5.3

Link to minimal reproduction

https://play.vuejs.org/#eNrtV1tv2lYc/yqW91pwW6ppZR7SNvVh07r7Iy+n5hS78U22CUxVJJcsGSgQIrSkVUqUNsrSbVkuEksLJGm+S+tjw1O+wv7HxgYC7Sa0l6pBwhz/b+f3v3LOffZTXY/P5jCbZHkLK7qMLJxKqwzDZ6RZfwFLPeU2/uo9PeptbJHDRW/f7u48cI6XvOMqOdvt2Zvucp10aq/tIs/poY54nZEyn6RZsr/utMtplrHQHUnN4ALQYtfSbIpHjCAj04R3EaMMNmJIFUTNAFHRwHeB/EGom+JNHamp4JXn/BeeQ/AVrw8wDmM5Pyl9l5OEGVMzrPOT8vlJhdRK3rNDUloklY7T2XarW5GkjgxLsiRNjeGCICI1i5mBHngLeq/sDTAPGq/sBhDdRwdOC+jV7tYuaZ+5zcfdsxXv19+99Z8Dq97+Q7e5eiEiiSAi7tFS92B1uoiEuv2IBK+jEUmMZWCzA+lz7Q13vjllHkYshNkYIv6nnNDg+NIQPZqQhRJkw2ltu/tHYSoqwYKsLJPFas+uk9P6hdrqW87J/T1gLUupnl12l/6AlDitPxkfHjMb0w0ceTYDZV0IoY9SYwqyREUGZmixb7fv0wQN0aLyDDIkFBOlTAarwLKMHB7b4Q4yx4kmiFppdnQ7+jGtn2Ts50HKilbyavxG4uqHWPmYWpiERtGMDEPhq5qhIOpCIcrEhB/GOW04rQ5E3VuteMX2+cl6EKxhJFPEjacrpqDIql9ElqUnOS6fz8fzibhmZLlrN29+xN0GGf9x+6uxUEOwTawg1ZIEc4wFTMXQ8hPolCNRl+E5QYt7gxqPVFWzEG14BquClpHULOBGui5Lgk/mCrHAbbA9EB4Hzb0JNewNnk5O2jtdQoMNSe3AOf4NWpm82PF2D6CcaH+vHvqjtjlMeW0/cFp7vYd/w9otrXXtBdDqrdfcRicUKPb7frvqbhRJZ8dpb5LHT6JCBbGgw7s2GH9EKmv+PIDGHx4C8NdEXi70LVU6sCEp1f0R04EpA5OB7K0EdNAmC88BFAX7YieiUzhl222UAVRv/tQ9ftp93iSHNaez7O2V4RkhAoHp54zfLxdTd9k+71X70BKsNf+l8rafXVbeZeX9P//9kyZmcMKKDq0wCrsv2/3RWadjPHod1ea56Pw1OGXWil173l37xdt9MuUpc8RCeMocIk46ZfJccE/huaHbC3uFtUxBU+9K2fg9U1PhcnOfCqdZQVN0ScbGNzotDDPNJhmfQ3lIlrX8lz6N5vNKSBdELMxMoN8zodKSsPjWwCY2ZiHZEc9CRhZDnin71g9f4wKsI6aiZXIySL+F+T02NTlHMQZin+XUDMAekvPRfqHocFGBNvjRvFWwsGqGTvkFCZJzvnyahRve529xfQA3Eb/h66XVOXbuHxRBbHM=

Steps to reproduce

In the playground, the Preview result does not match the template. Strangely, by applying the following modifications to the content, it matches correctly:

  • Commenting out only the <math> related elements;
  • Commenting out any heading, such as <h2>, <h3>.

What is expected?

The compilation result should match the <template>.

What is actually happening?

System Info

No response

Any additional comments?

No response

@edison1105 edison1105 added the 🐞 bug Something isn't working label Sep 10, 2024
@edison1105
Copy link
Member

It works fine in v3.4

@edison1105
Copy link
Member

edison1105 commented Sep 10, 2024

a workaround:

<template>
  <div v-once>
  ...
  </div>
</template>

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working regression scope: sfc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants