html5lib/html5lib-python

lxml doesn't roundtrip comments after </html>

Closed this issue · 0 comments

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