From e8fc08e45dea47ebae0156547d706df08ca4f05a Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 7 Jun 2001 19:35:47 +0000 Subject: [PATCH] - tree.c: fixed xmlGetNsProp() to close bug #55683 Note this requires libxslt to use it's own function instead. Daniel --- ChangeLog | 5 +++++ tree.c | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8dae459a..cdc645bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 7 21:29:39 CEST 2001 Daniel Veillard + + * tree.c: fixed xmlGetNsProp() to close bug #55683 + Note this requires libxslt to use it's own function instead. + Thu Jun 7 18:06:34 CEST 2001 Daniel Veillard * HTMLtree.c: when in a pre element no formatting space should diff --git a/tree.c b/tree.c index d5286871..0cd65ad6 100644 --- a/tree.c +++ b/tree.c @@ -4375,14 +4375,10 @@ xmlGetNsProp(xmlNodePtr node, const xmlChar *name, const xmlChar *namespace) { * 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);