1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-20 03:52:25 +03:00

htmlNodeDumpFormatOutput didn't handle XML_ATTRIBUTE_NODe fixes bug

* HTMLtree.c: htmlNodeDumpFormatOutput didn't handle XML_ATTRIBUTE_NODe
  fixes bug #438390
Daniel

svn path=/trunk/; revision=3631
This commit is contained in:
Daniel Veillard
2007-06-12 09:49:40 +00:00
parent 5cdbbd2c75
commit fcd02adb71
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
Tue Jun 12 11:48:15 CEST 2007 Daniel Veillard <daniel@veillard.com>
* HTMLtree.c: htmlNodeDumpFormatOutput didn't handle XML_ATTRIBUTE_NODe
fixes bug #438390
Tue Jun 12 11:37:55 CEST 2007 Daniel Veillard <daniel@veillard.com> Tue Jun 12 11:37:55 CEST 2007 Daniel Veillard <daniel@veillard.com>
* xmlIO.c: workaround misgenerated file: URIs c.f. #437385 * xmlIO.c: workaround misgenerated file: URIs c.f. #437385

View File

@@ -780,6 +780,10 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
htmlDocContentDumpOutput(buf, (xmlDocPtr) cur, encoding); htmlDocContentDumpOutput(buf, (xmlDocPtr) cur, encoding);
return; return;
} }
if (cur->type == XML_ATTRIBUTE_NODE) {
htmlAttrDumpOutput(buf, doc, (xmlAttrPtr) cur, encoding);
return;
}
if (cur->type == HTML_TEXT_NODE) { if (cur->type == HTML_TEXT_NODE) {
if (cur->content != NULL) { if (cur->content != NULL) {
if (((cur->name == (const xmlChar *)xmlStringText) || if (((cur->name == (const xmlChar *)xmlStringText) ||