html5lib example code at http://lxml.de/html5parser.html

Aug. 11, 2015
6:16 p.m.
When I run the example code at http://lxml.de/html5parser.html I get... <html:table xmlns:html="http://www.w3.org/1999/xhtml "><html:tbody><html:tr><html:td>foo</html:td></html:tr></html:tbody></html:table> but the page says I should get... '<table><tbody><tr><td>foo</td></tr></tbody></table>' How can I get rid of the namespace stuff? This is the exact code I am running... from lxml.html import tostring, html5parser print tostring(html5parser.fromstring("<table><td>foo"))
3484
Age (days ago)
3484
Last active (days ago)
0 comments
1 participants
participants (1)
-
Corey Boyle