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

- tree.c: fixed xmlHasNsProp() accordingly to bug #55683

- doc/xml.html: updated with 2.3.11
Daniel
This commit is contained in:
Daniel Veillard
2001-06-17 14:50:34 +00:00
parent 6d473ed349
commit e3c81b50bf
3 changed files with 25 additions and 8 deletions

7
tree.c
View File

@ -4300,11 +4300,8 @@ xmlHasNsProp(xmlNodePtr node, const xmlChar *name, const xmlChar *nameSpace) {
* no namespace on the attribute and the element carrying it
*/
if ((xmlStrEqual(prop->name, name)) &&
(((prop->ns == NULL) && (node->ns != NULL) &&
(xmlStrEqual(node->ns->href, nameSpace))) ||
((prop->ns != NULL) &&
(xmlStrEqual(prop->ns->href, nameSpace))))) {
return(prop);
((prop->ns != NULL) && (xmlStrEqual(prop->ns->href, nameSpace)))) {
return(prop);
}
prop = prop->next;
}