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:
7
tree.c
7
tree.c
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user