Skip to content

Allow HTML Comments to not be removed from the DOM. #5392

@mmaihoefner

Description

@mmaihoefner

What problem does this feature solve?

Currently Vue removes HTML Comments from the templates. It would be nice if we could disable this behavior via a configuration. The specific use case is that we are trying to use Vue with Magnolia CMS and Magnolia uses comments to figure out where to display its contribution interface. When Vue removes the comments Magnolia cannot place its contribution interface anymore, which renders the Page useless.

What does the proposed API look like?

new Vue({
comments: true | false
});
false: would function like the current behavior, true: would not remove the comments and keep them in the DOM.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions