You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of now only strings containing HTML seem to be acceptable input.
Is there a way to pass an object parsed by LXML or lxml.html (types: etree._ElementTree and html.HtmlElement) straight to Document() or should we create one?
The text was updated successfully, but these errors were encountered:
The library changes the lxml document internally, that's why I would avoid that in a public version.
When you're warned, you can now subclass Document and replace _parse method the behavior you need, e.g.
You can also make a PR which does that --checks for an input type and makes a copy of lxml document passed if it's an lxml document (or an etree document).
As of now only strings containing HTML seem to be acceptable input.
Is there a way to pass an object parsed by LXML or
lxml.html
(types:etree._ElementTree
andhtml.HtmlElement
) straight toDocument()
or should we create one?The text was updated successfully, but these errors were encountered: