Working with HTML5 documents

Ian Kelly ian.g.kelly at gmail.com
Thu Nov 20 14:44:31 EST 2014


On Thu, Nov 20, 2014 at 12:02 PM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> There's also the E-factory for creating (sub-)trees and a nicely objectish way:
>
> http://lxml.de/lxmlhtml.html#creating-html-with-the-e-factory

That looks ugly with all those caps and also hard to extend. Notably
it seems to be missing any functions to build HTML5 elements, unless
those have been added in lxml 3.4.

Working with lxml.html.Element directly seems pretty versatile, though.



More information about the Python-list mailing list