1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-01 10:06:59 +03:00

small cleanup of the man page fixed a potential problem raised by Petr

* libxml.3: small cleanup of the man page
* HTMLtree.c: fixed a potential problem raised by Petr Vandrovec
  when serializing HREF attributes generated by XSLT.
Daniel
This commit is contained in:
Daniel Veillard
2002-08-12 14:53:41 +00:00
parent c084e47841
commit ad11b301ab
3 changed files with 11 additions and 5 deletions

View File

@ -386,8 +386,8 @@ htmlAttrDump(xmlBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur) {
value = xmlNodeListGetString(doc, cur->children, 0);
if (value) {
xmlBufferWriteChar(buf, "=");
if ((xmlStrEqual(cur->name, BAD_CAST "href")) ||
(xmlStrEqual(cur->name, BAD_CAST "src"))) {
if ((!xmlStrcasecmp(cur->name, BAD_CAST "href")) ||
(!xmlStrcasecmp(cur->name, BAD_CAST "src"))) {
xmlChar *escaped;
xmlChar *tmp = value;
@ -875,8 +875,8 @@ htmlAttrDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur,
value = xmlNodeListGetString(doc, cur->children, 0);
if (value) {
xmlOutputBufferWriteString(buf, "=");
if ((xmlStrEqual(cur->name, BAD_CAST "href")) ||
(xmlStrEqual(cur->name, BAD_CAST "src"))) {
if ((!xmlStrcasecmp(cur->name, BAD_CAST "href")) ||
(!xmlStrcasecmp(cur->name, BAD_CAST "src"))) {
xmlChar *escaped;
xmlChar *tmp = value;