Fixed reopening of #78662 <form action="..."> is an URI reference Daniel
* HTMLtree.c: Fixed reopening of #78662 <form action="...">
is an URI reference
Daniel
diff --git a/HTMLtree.c b/HTMLtree.c
index 039f3bd..0eb7959 100644
--- a/HTMLtree.c
+++ b/HTMLtree.c
@@ -605,8 +605,11 @@
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;