Comment 2 for bug 1758553

Revision history for this message
Vincent Bernat (vbernat) wrote :


Sorry for not testing earlier, but it doesn't seem to work:

>>> from lxml import etree as ET
>>> import lxml.html
>>> lxml.html.tostring(ET.Element("source"))
>>> lxml.html.tostring(ET.Element("img"))

Maybe these tags should be removed from `html5_tags`? All other tags from `empty_tags` are part of another set. Dunno, if this is mandatory.