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
diff --git a/ChangeLog b/ChangeLog
index 26f3f0e..f218f03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
 	* xmlIO.c: workaround misgenerated file: URIs c.f. #437385
diff --git a/HTMLtree.c b/HTMLtree.c
index c1e5a0a..e79d118 100644
--- a/HTMLtree.c
+++ b/HTMLtree.c
@@ -780,6 +780,10 @@
 	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) ||