TypeError with html5parser.tostring()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Undecided
|
scoder |
Bug Description
System info:
Python : (2, 6, 1, 'final', 0)
lxml.etree : (2, 3, 0, 0)
libxml used : (2, 7, 3)
libxml compiled : (2, 7, 3)
libxslt used : (1, 1, 24)
libxslt compiled : (1, 1, 24)
html5 used : 0.90
Operating System: Mac OS X 10.6.7
With this example given in documentation:
from lxml.html import tostring, html5parser
tostring(
I get the following error:
/Users/
1561 This can also be used for XHTML documents.
1562 """
-> 1563 v = html_parser.
1564 return v
1565
/Users/
/Users/
/Users/
/Users/
/Users/
TypeError: Argument must be bytes or unicode, got 'dict'
html5 parsing seems to be completely broken because of this bug