decruft
decruft copied to clipboard
It is not possible to drop the HTML element since it has no parents
Trying to do that raises an AssertionError
in lxml since it checks for existing parents.
I've encountered that while trying to run a gizmodo article through decruft.