Visitar URL original
lxml walker raises IndexError on empty list · Issue #343 · html5lib/html5lib-python · GitHub
The Wayback Machine - https://web.archive.org/web/20201014222848/https://github.com/html5lib/html5lib-python/issues/343
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 walker raises IndexError on empty list #343

Open
indivisible opened this issue May 2, 2017 · 0 comments
Open

lxml walker raises IndexError on empty list #343

indivisible opened this issue May 2, 2017 · 0 comments
Labels

Comments

@indivisible
Copy link

@indivisible indivisible commented May 2, 2017 •

The lxml treewalker throws an IndexError if given an empty list.

This is a problem because with the lxml TreeBuilder parseFragment will produce an empty list for an empty input string, making spacial handling necessary compared to other tree types.

Demonstration of the bug.

@gsnedders gsnedders added the serializer label May 3, 2017
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.

None yet
2 participants
You can’t perform that action at this time.