Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode \u2028 character crashing vue #4268

Closed
btolarz opened this issue Nov 21, 2016 · 1 comment
Closed

Unicode \u2028 character crashing vue #4268

btolarz opened this issue Nov 21, 2016 · 1 comment
Labels

Comments

@btolarz
Copy link

btolarz commented Nov 21, 2016

Vue.js version

2.0.8

Reproduction Link

http://jsfiddle.net/3hmp0e16/1/

Steps to reproduce

Run the JSFiddle above and you will see that content is not visible.

What is Expected?

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

What is actually happening?

Uncaught TypeError: Cannot set property 'isStatic' of undefined
for Vue 2.0.8 when \u2028 character is in DOM element attribute on creating new Vue instance.
<img src="http://placehold.it/350x150" alt="hello\u2028 word" />

[Vue warn]: failed to compile template:

<div id="app">
  <img src="http://placehold.it/350x150" alt="hello
 word">
</div>
 
(found in root instance)warn @ vue.js:2658compileToFunctions @ vue.js:7826Vue$3.$mount @ vue.js:7895initRender @ vue.js:2234Vue._init @ vue.js:2597Vue$3 @ vue.js:2641window.onload @ (index):49
vue.js:2658 [Vue warn]: Error when rendering root instance: warn @ vue.js:2658Vue._render @ vue.js:2269(anonymous function) @ vue.js:1709get @ vue.js:740Watcher @ vue.js:732Vue._mount @ vue.js:1708Vue$3.$mount @ vue.js:5746Vue$3.$mount @ vue.js:7906initRender @ vue.js:2234Vue._init @ vue.js:2597Vue$3 @ vue.js:2641window.onload @ (index):49
vue.js:2278 TypeError: Cannot set property 'isStatic' of undefined(…)

Related to #3895

@posva
Copy link
Member

posva commented Nov 21, 2016

Thanks! It's the same as #3895 but in attrs. I'll fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants