Skip to content

Untrimmed spaces in class attribute causing syntax error #2426

@prog-rajkamal

Description

@prog-rajkamal

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.

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