Skip to content

Problems if SELF_CLOSING_TAGS is not self closing... #2

@jedie

Description

@jedie

From: #1 (comment) (I put this here, because IMHO it's not related to the other issues)

parse_html('<input value="Foo" type="text" name="first_name"></input>')

would produce a error:

AssertionError: html code is not valid: Unexpected end tag `input` (Line 1, Column 49), at line 1, column 50 - code: '<input value="Foo" type="text" name="first_name"></input>'

Think it's something around

if tag not in self.SELF_CLOSING_TAGS:
:

def handle_startendtag(self, tag, attrs):
    self.handle_starttag(tag, attrs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions