html5lib example in docs does not work as stated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
New
|
Undecided
|
Unassigned |
Bug Description
The lxml docs show the following example:
>>> from lxml.html import tostring, html5parser
>>> tostring(
'<table>
(from http://
However, when I run the example myself I get the following:
>>> from lxml.html import tostring, html5parser
>>> tostring(
b'<html:table xmlns:html="http://
I am using the newest versions of lxml and html5lib installed from pip:
Python : sys.version_
lxml.etree : (3, 4, 4, 0)
libxml used : (2, 9, 2)
libxml compiled : (2, 9, 2)
libxslt used : (1, 1, 28)
libxslt compiled : (1, 1, 28)
html5lib==0.999999