1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

prevent output of fragment tags when serializing XHTML.

* xmlsave.c: prevent output of fragment tags when serializing XHTML.
This commit is contained in:
Rob Richards
2005-10-21 14:45:16 +00:00
parent aa62201290
commit 2e2691b51c
2 changed files with 8 additions and 0 deletions

View File

@@ -1111,6 +1111,10 @@ xhtmlNodeDumpOutput(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
xmlDtdDumpOutput(ctxt, (xmlDtdPtr) cur);
return;
}
if (cur->type == XML_DOCUMENT_FRAG_NODE) {
xhtmlNodeListDumpOutput(ctxt, cur->children);
return;
}
buf = ctxt->buf;
if (cur->type == XML_ELEMENT_DECL) {
xmlDumpElementDecl(buf->buffer, (xmlElementPtr) cur);