[lxml-dev] Proposal: Better html5lib Support

Armin Ronacher armin.ronacher at active-4.com
Mon Jul 14 22:30:37 CEST 2008


Hi,

Stefan Behnel <stefan_ml <at> behnel.de> writes:

> One quick comment: You are restricting the parser input to unicode strings in
> Py3. Besides that being wrong in general, can html5lib actually handle unicode
> string input?
The Python3 support is currently limited to str objects (aka unicode in Python
2) but that doesn't matter much because html5lib is currently not Python 3
compatible anyways.  In Python 2 html5lib can handle both unicode and str
objects.

> 
> Stefan
Regards,
Armin






More information about the lxml-dev mailing list