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

Untrimmed spaces in class attribute causing syntax error #2426

Closed
prog-rajkamal opened this issue Mar 4, 2016 · 0 comments
Closed

Untrimmed spaces in class attribute causing syntax error #2426

prog-rajkamal opened this issue Mar 4, 2016 · 0 comments
Labels

Comments

@prog-rajkamal
Copy link

Vue.js version

1.0.17

Reproduction Link

https://jsfiddle.net/4300L6uz/

Steps to reproduce

1)in a custom-element, add extra space at end of class attribute, eg class="p1 p2" => class="p1 p2 "

I have not checked other attributes. the problem may exist in them as well.

What is Expected?

Vue should trim the extra spaces and proceed silently

What is actually happening?

Vue throws syntax error, which halts the app.

The workaround: trim those extra spaces. This problem is very trivial, but its effects are not.

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