Skip to content
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

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

Closed
gsnedders opened this issue May 6, 2020 · 0 comments
Closed

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

gsnedders opened this issue May 6, 2020 · 0 comments

Comments

@gsnedders
Copy link
Member

@gsnedders gsnedders commented May 6, 2020

>>> 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 added 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
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.