mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +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:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Aug 1 14:50:28 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* tree.c: trying to fix a problem in namespaced attribute handling
|
||||||
|
raised by Christian Glahn
|
||||||
|
|
||||||
Thu Aug 1 12:17:30 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
Thu Aug 1 12:17:30 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* encoding.c include/libxml/encoding.h: Opening the interface
|
* encoding.c include/libxml/encoding.h: Opening the interface
|
||||||
|
4
tree.c
4
tree.c
@ -5261,9 +5261,7 @@ xmlUnsetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name) {
|
|||||||
return(-1);
|
return(-1);
|
||||||
while (prop != NULL) {
|
while (prop != NULL) {
|
||||||
if ((xmlStrEqual(prop->name, name)) &&
|
if ((xmlStrEqual(prop->name, name)) &&
|
||||||
(((prop->ns == NULL) && (node->ns != NULL) &&
|
(prop->ns != NULL) && (xmlStrEqual(prop->ns->href, ns->href))) {
|
||||||
(xmlStrEqual(node->ns->href, ns->href))) ||
|
|
||||||
((prop->ns != NULL) && (xmlStrEqual(prop->ns->href, ns->href))))) {
|
|
||||||
if (prev == NULL)
|
if (prev == NULL)
|
||||||
node->properties = prop->next;
|
node->properties = prop->next;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user