Skip to content

lxml doesn't roundtrip comments after </html> #488

Closed
@gsnedders

Description

@gsnedders
>>> from html5lib import parse, serialize
>>> start = "</html><!-- a --><!-- b -->"
>>> print(serialize(parse(start, treebuilder="lxml"), tree="lxml"))
</html><!-- b --><!-- a -->

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions