diff --git a/ChangeLog b/ChangeLog index 8fbab434..2a5bd9fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Sep 14 21:53:39 PDT 2003 William Brack + + * HTMLtree.c: Fixed bug 121394 - missing ns on attributes + Sun Sep 14 21:43:32 CEST 2003 Daniel Veillard * parser.c include/libxml/xmlerror.h: factoring of more diff --git a/HTMLtree.c b/HTMLtree.c index 4efce27f..7571731b 100644 --- a/HTMLtree.c +++ b/HTMLtree.c @@ -606,6 +606,10 @@ htmlAttrDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur, return; } xmlOutputBufferWriteString(buf, " "); + if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) { + xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); + xmlOutputBufferWriteString(buf, ":"); + } xmlOutputBufferWriteString(buf, (const char *)cur->name); if ((cur->children != NULL) && (!htmlIsBooleanAttr(cur->name))) { value = xmlNodeListGetString(doc, cur->children, 0);