Skip to content

html5lib-python emits error about 'trailing solidus' on img tag #114

Open
@ericpromislow

Description

@ericpromislow

This should be a warning, not an error, for empty elements.

From html5.dtd:

From http://www.w3.org/html/wg/drafts/html/master/syntax.html#self-closing-start-tag-state:

">" (U+003E)
Set the self-closing flag of the current tag token. Switch to the data state. Emit the current tag token.

Anything else gives a parse error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions