Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-02-27 07:18:28 -05:00
parent 0ea5befe3f
commit 3029c048ea
+1 -1
View File
@@ -199,7 +199,7 @@ class HTML(BaseParser):
def __init__(self, *, url, html, default_encoding=DEFAULT_ENCODING):
super(HTML, self).__init__(
element=fromstring(html),
element=PyQuery(html)('html'),
html=html,
url=url,
default_encoding=default_encoding