-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
Description
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 .