Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
The etree walker with implementation
lxml.etreedoesn't work when passed a full html document (having typelxml.etree._ElementTree).To reproduce--
The last line fails with the following error:
The walker should probably first be calling
root = element.getroot(). This seems to be on the same wave length as the issue withtreewalkers/etree.pyI described in this comment: #338 (comment)