A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/issues/3895 below:

Issue with rendering certain Unicode characters · Issue #3895 · vuejs/vue · GitHub

Vue.js version

2.0.1

Reproduction Link

http://jsfiddle.net/wmmw143f/1/

Steps to reproduce

Run the JSFiddle above and you will see the content isn't displayed and errors in the console.

What is Expected?

I would expect the app to run regardless of the Unicode characters, without errors.

What is actually happening?
[Vue warn]: failed to compile template:

<div id="app">
  This is user-generated content, and unfortunately includes the Unicode character 2028 right here: 
.
</div>

 (found in root instance)
[Vue warn]: Error when rendering root instance: 
Uncaught TypeError: Cannot set property 'isStatic' of undefined
Background

I'm not sure if this is the right place for this or not, but I'm of the feeling this is a bug with Vue. I'll also point out that I'm not that knowledgable about character encodings, but here is the information I have.

We have been testing the Vue 2.0 upgrade on our website which has a lot of user-generated content. It appears that some of our user-generated contains uncommon Unicode characters like U+2028 Line Separator. These appear invisible by standard.

However, when they appear in the content of a Vue 2.0 page, Vue fails completely and then removes it's entire DOM node from the tree, leaving the page bare.

Here is a JSFiddle that demonstrates the issue. You'll notice that JSFiddle highlights the Unicode character in question. When you remove that character, the app runs correctly.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4