1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-28 00:21:53 +03:00

Fixed reopening of #78662 <form action="..."> is an URI reference Daniel

* HTMLtree.c: Fixed reopening of #78662 <form action="...">
  is an URI reference
Daniel
This commit is contained in:
Daniel Veillard
2003-03-27 14:08:24 +00:00
parent e209b33055
commit c7e9b194e7
2 changed files with 10 additions and 2 deletions

View File

@ -605,8 +605,11 @@ htmlAttrDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur,
value = xmlNodeListGetString(doc, cur->children, 0);
if (value) {
xmlOutputBufferWriteString(buf, "=");
if ((!xmlStrcasecmp(cur->name, BAD_CAST "href")) ||
(!xmlStrcasecmp(cur->name, BAD_CAST "src"))) {
if ((cur->ns == NULL) && (cur->parent != NULL) &&
(cur->parent->ns == NULL) &&
((!xmlStrcasecmp(cur->name, BAD_CAST "href")) ||
(!xmlStrcasecmp(cur->name, BAD_CAST "action")) ||
(!xmlStrcasecmp(cur->name, BAD_CAST "src")))) {
xmlChar *escaped;
xmlChar *tmp = value;