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

[Fix] Incorrect errors in invalid EOF cases (fixes #268) #274

Merged
merged 1 commit into from
Dec 3, 2017

Conversation

mysticatea
Copy link
Member

This PR fixes #268 and some similar cases:

I.e. some rules are confused in invalid EOF. This PR fixes some rules to not report errors if the code has invalid EOF.

// code: '<template><div><input></input></div></template>',
// output: '<template><div><input></template>',
// errors: ["'<input>' should not have end tag."]
// },
Copy link
Member Author

@mysticatea mysticatea Dec 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those tests are no longer needed. It's a kind of syntax error if void elements have their extra end tag, so it's reported by vue/no-parsing-error rule.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, then please remove it :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has been removed already 😀

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently I need to start wearing glasses 🤓

@michalsnik michalsnik changed the title Fix: incorrect errors in invalid EOF cases (fixes #268) [Fix] Incorrect errors in invalid EOF cases (fixes #268) Dec 2, 2017
// code: '<template><div><input></input></div></template>',
// output: '<template><div><input></template>',
// errors: ["'<input>' should not have end tag."]
// },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, then please remove it :)

@michalsnik
Copy link
Member

Please remove those commented lines and we're good to merge it. Good work!

@michalsnik michalsnik merged commit a93a234 into master Dec 3, 2017
@michalsnik michalsnik deleted the html-end-tags/fix-adding-many-end-tags branch December 3, 2017 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vue/html-end-tags rule goes out of control
2 participants