Skip to content

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

Description

@glebm

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" />

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions