1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-04-24 18:50:07 +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

@ -1,3 +1,7 @@
Fri Oct 21 10:50:14 EDT 2005 Rob Richards <rrichards@ctindustries.net>
* xmlsave.c: prevent output of fragment tags when serializing XHTML.
Wed Oct 19 16:53:47 BST 2005 Daniel Veillard <daniel@veillard.com>
* xmlregexp.c: commiting a some fixes and debug done yesterday in

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);