Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gsnedders opened this issue May 6, 2020 · 0 comments · Fixed by #496
Closed

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

gsnedders opened this issue May 6, 2020 · 0 comments · Fixed by #496

Comments

@gsnedders
Copy link
Member

>>> from html5lib import parse, serialize
>>> start = "</html><!-- a --><!-- b -->"
>>> print(serialize(parse(start, treebuilder="lxml"), tree="lxml"))
</html><!-- b --><!-- a -->
gsnedders added a commit to gsnedders/html5lib-python that referenced this issue May 22, 2020
gsnedders added a commit to html5lib/html5lib-tests that referenced this issue May 26, 2020
Notably, html5lib-python's lxml treebuilder gets this wrong:
html5lib/html5lib-python#488
sideshowbarker pushed a commit to html5lib/html5lib-tests that referenced this issue May 28, 2020
Notably, html5lib-python's lxml treebuilder gets this wrong:
html5lib/html5lib-python#488
gsnedders added a commit to gsnedders/html5lib-python that referenced this issue Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant