Skip to content
This repository has been archived by the owner on Sep 5, 2018. It is now read-only.

endsWithEOF parse error handling #119

Open
adon-at-work opened this issue Jul 8, 2015 · 2 comments
Open

endsWithEOF parse error handling #119

adon-at-work opened this issue Jul 8, 2015 · 2 comments
Milestone

Comments

@adon-at-work
Copy link
Contributor

Would be great to warn developers if a template is found ending in states that have parse errors

Reference: EOF parse error handling as in https://html.spec.whatwg.org/multipage/syntax.html#tokenization

@adon-at-work adon-at-work changed the title endsWithEOF Handling endsWithEOF parse error handling Jul 8, 2015
@neraliu neraliu added this to the v1.1.1 milestone Jul 10, 2015
@neraliu
Copy link
Contributor

neraliu commented Jul 10, 2015

should we in general warn the developer if the template does not end with DATA state if it is not a partial template?

@adon-at-work
Copy link
Contributor Author

that could be a temp fix.
The spec defines that there're no parse errors (warnings) if a file ends in https://html.spec.whatwg.org/multipage/syntax.html#rawtext-state and some others though.

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

No branches or pull requests

2 participants