Skip to content

HTML comment generated with renderToString around v-for #1303

@jardakotesovec

Description

@jardakotesovec

Version

3.0.0-beta.14

Steps to reproduce

const app = createSSRApp({
  template: `<ul>
     <li v-for="num in [1,2,3]">{{num}}</li>
     </ul>`
});

const html = await renderToString(app);

What is expected?

<ul><li>1</li><li>2</li><li>3</li></ul>

What is actually happening?

<ul><!--[--><li>1</li><li>2</li><li>3</li><!--]--></ul>


Hi, just wondering if these html comments are necessary/intended to be in final string. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions