[lxml-dev] Proposal: Better html5lib Support
Geoffrey Sneddon
foolistbar at googlemail.com
Mon Jul 14 23:40:10 CEST 2008
On 12 Jul 2008, at 23:14, Armin Ronacher wrote:
> Comes out as (lxml.etree.tostring)::
>
> <!DOCTYPE html PUBLIC "" "">
> ...
>
> Not a big deal as not writing out data as a whole document and if I
> would then
> as HTML4. I think the html5 doctype is not a valid XML doctype but
> HTML5 as
> serialization format is not really XML. For HTML5 serialization one
> would have
> to use the html5lib serializer anyways and that could add a
> workaround for
> lxml.
The intention, FWIW, is for XHTML5 documents to have no DOCTYPE.
--
Geoffrey Sneddon
<http://gsnedders.com/>
More information about the lxml-dev
mailing list