Skip to content

Conversation

mariolamacchia
Copy link
Contributor

Fixes #217

@mariolamacchia
Copy link
Contributor Author

Hey guys! A question: should <br /> be valid or not?

@mysticatea
Copy link
Member

Thank you for contributing!

LGTM.

<br /> is valid in HTML spec because it's a void element.
People can control preference between <br> and <br/> by vue/html-self-closing rule.

In background of this bug, actually, <div/> is non-void-html-element-start-tag-with-trailing-solidus error in HTML spec. This rule was created on early time I didn't know Vue.js supports the trailing solidus even if it's a non-void HTML element.

@mysticatea mysticatea merged commit 43f248b into vuejs:master Oct 27, 2017
@mariolamacchia mariolamacchia deleted the html-end-tag-self-closing branch November 8, 2017 15:24
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.

2 participants