Skip to content

HTML block comments & single quotes not parsed correctly #6150

@Muffinman

Description

@Muffinman

Version

2.4.1

Reproduction link

https://codepen.io/anon/pen/dREmrV

Steps to reproduce

Using the new comments: true property on a vue instance does not understand block comments, and it also errors when single quotes ' are used within inline comments.

This is particularly annoying in Drupal development when debugging templates, since the template debug output is done using block comments and contains single quotes. See codepen example for a typical Drupal comment block output.

What is expected?

Comments should be rendered correctly within the outputted HTML.

What is actually happening?

VueJS fails to render the instance and throws an exception when trying to parse the comments.


I believe this would happen when using Drupal 7 or 8 with development debugging turned on, when using Vue 2.4 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions