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

Warning at compilation when the template is invalid #4408

Closed
xiaoyann opened this issue Dec 7, 2016 · 2 comments
Closed

Warning at compilation when the template is invalid #4408

xiaoyann opened this issue Dec 7, 2016 · 2 comments
Assignees

Comments

@xiaoyann
Copy link

xiaoyann commented Dec 7, 2016

Vue.js version

2.1.4

Reproduction Link

https://jsfiddle.net/xiaoyann/phL4cLht/

Steps to reproduce

What is Expected?

throw a warning or an error

What is actually happening?

Although this case works well. But the result is not expected. And there are no any warning or error displayed so that it is very difficut to find the template mistake.

@xiaoyann xiaoyann changed the title there ere no any error or warn with the wrong template there ere no any error or warning with the wrong template Dec 7, 2016
@posva posva changed the title there ere no any error or warning with the wrong template Warning at compilation when the template is invalid Dec 7, 2016
@defcc
Copy link
Member

defcc commented Dec 8, 2016

I'm looking into it. Maybe we could improve the parser, or we could achieve it in vue-loader and vueify considering the compiler code size.

@mateuszgachowski
Copy link

@defcc have you considered using DomParser?

Example:
document.body.innerHTML = new DOMParser().parseFromString('<div></p></div>', 'text/xml').documentElement.innerHTML

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

No branches or pull requests

5 participants