mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
- tree.c: fixed xmlGetNsProp() to close bug #55683
Note this requires libxslt to use it's own function instead. Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jun 7 21:29:39 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
|
* 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 <Daniel.Veillard@imag.fr>
|
Thu Jun 7 18:06:34 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
* HTMLtree.c: when in a pre element no formatting space should
|
* HTMLtree.c: when in a pre element no formatting space should
|
||||||
|
8
tree.c
8
tree.c
@ -4375,14 +4375,10 @@ xmlGetNsProp(xmlNodePtr node, const xmlChar *name, const xmlChar *namespace) {
|
|||||||
* One need to have
|
* One need to have
|
||||||
* - same attribute names
|
* - same attribute names
|
||||||
* - and the attribute carrying that namespace
|
* - and the attribute carrying that namespace
|
||||||
* or
|
|
||||||
* no namespace on the attribute and the element carrying it
|
|
||||||
*/
|
*/
|
||||||
if ((xmlStrEqual(prop->name, name)) &&
|
if ((xmlStrEqual(prop->name, name)) &&
|
||||||
(((prop->ns == NULL) && (node->ns != NULL) &&
|
((prop->ns != NULL) &&
|
||||||
(xmlStrEqual(node->ns->href, namespace))) ||
|
(xmlStrEqual(prop->ns->href, namespace)))) {
|
||||||
((prop->ns != NULL) &&
|
|
||||||
(xmlStrEqual(prop->ns->href, namespace))))) {
|
|
||||||
xmlChar *ret;
|
xmlChar *ret;
|
||||||
|
|
||||||
ret = xmlNodeListGetString(node->doc, prop->children, 1);
|
ret = xmlNodeListGetString(node->doc, prop->children, 1);
|
||||||
|
Reference in New Issue
Block a user