From fcd02adb71893fc1e78629d8effab2f30cbda097 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 12 Jun 2007 09:49:40 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ HTMLtree.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 26f3f0e3..f218f030 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jun 12 11:48:15 CEST 2007 Daniel Veillard + + * HTMLtree.c: htmlNodeDumpFormatOutput didn't handle XML_ATTRIBUTE_NODe + fixes bug #438390 + Tue Jun 12 11:37:55 CEST 2007 Daniel Veillard * xmlIO.c: workaround misgenerated file: URIs c.f. #437385 diff --git a/HTMLtree.c b/HTMLtree.c index c1e5a0a4..e79d1180 100644 --- a/HTMLtree.c +++ b/HTMLtree.c @@ -780,6 +780,10 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, htmlDocContentDumpOutput(buf, (xmlDocPtr) cur, encoding); return; } + if (cur->type == XML_ATTRIBUTE_NODE) { + htmlAttrDumpOutput(buf, doc, (xmlAttrPtr) cur, encoding); + return; + } if (cur->type == HTML_TEXT_NODE) { if (cur->content != NULL) { if (((cur->name == (const xmlChar *)xmlStringText) ||