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

Spec should not start an HTML block for void elements #435

Open
glebm opened this issue Nov 6, 2016 · 1 comment
Open

Spec should not start an HTML block for void elements #435

glebm opened this issue Nov 6, 2016 · 1 comment

Comments

@glebm
Copy link

glebm commented Nov 6, 2016

Void elements as described in the HTML spec should not start a CommonMark HTML block, because void elements cannot have any content.

The void elements are:

area base br col embed hr img input link menuitem meta param source track wbr

E.g. neither of these should start an HTML block, but currently do as they match HTML block Start condition 7:

<img src="x.jpg>
<img src="x.jpg" />
glebm added a commit to glebm/CommonMark that referenced this issue Nov 6, 2016
@glebm
Copy link
Author

glebm commented Nov 6, 2016

I propose the spec be changed to something like this: #436

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

No branches or pull requests

1 participant