Fixed bug 121394 - missing ns on attributes

* HTMLtree.c: Fixed bug 121394 - missing ns on attributes
This commit is contained in:
William M. Brack 2003-09-15 04:58:14 +00:00
parent bdbe0d4e78
commit 3a6da760c5
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sun Sep 14 21:53:39 PDT 2003 William Brack <wbrack@mmm.com.hk>
* HTMLtree.c: Fixed bug 121394 - missing ns on attributes
Sun Sep 14 21:43:32 CEST 2003 Daniel Veillard <daniel@veillard.com>
* parser.c include/libxml/xmlerror.h: factoring of more

View File

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