Comment 1 for bug 1421921

Revision history for this message
Olli Pottonen (olli-pottonen) wrote :

The comment is parsed correctly and doc.getroottree().getprevious() returns it as expected. The bug is in serialization. _writePrevSiblings() in serializer.pxi omits declaration (as it should) and everything before it (as it should not).

Because lxml handles the declaration itself, instead of relying on libxml2, this is difficult to get right.