1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

trying to fix a problem in namespaced attribute handling raised by

* tree.c: trying to fix a problem in namespaced attribute handling
  raised by Christian Glahn
Daniel
This commit is contained in:
Daniel Veillard
2002-08-01 12:54:11 +00:00
parent a57c26ec0c
commit 0bf2900b50
2 changed files with 6 additions and 3 deletions

4
tree.c
View File

@ -5261,9 +5261,7 @@ xmlUnsetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name) {
return(-1);
while (prop != NULL) {
if ((xmlStrEqual(prop->name, name)) &&
(((prop->ns == NULL) && (node->ns != NULL) &&
(xmlStrEqual(node->ns->href, ns->href))) ||
((prop->ns != NULL) && (xmlStrEqual(prop->ns->href, ns->href))))) {
(prop->ns != NULL) && (xmlStrEqual(prop->ns->href, ns->href))) {
if (prev == NULL)
node->properties = prop->next;
else