- tree.c: fixed xmlGetNsProp() to close bug #55683
Note this requires libxslt to use it's own function instead.
Daniel
diff --git a/tree.c b/tree.c
index d528687..0cd65ad 100644
--- a/tree.c
+++ b/tree.c
@@ -4375,14 +4375,10 @@
* One need to have
* - same attribute names
* - and the attribute carrying that namespace
- * or
- * 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))))) {
+ ((prop->ns != NULL) &&
+ (xmlStrEqual(prop->ns->href, namespace)))) {
xmlChar *ret;
ret = xmlNodeListGetString(node->doc, prop->children, 1);