mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
fixed bug 124061 (problem with namespace eval)
* xpath.c: fixed bug 124061 (problem with namespace eval)
This commit is contained in:
2
xpath.c
2
xpath.c
@ -5758,6 +5758,8 @@ xmlXPathNextPrecedingInternal(xmlXPathParserContextPtr ctxt,
|
|||||||
cur = ctxt->context->node;
|
cur = ctxt->context->node;
|
||||||
if (cur == NULL)
|
if (cur == NULL)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
if (cur->type == XML_NAMESPACE_DECL)
|
||||||
|
cur = (xmlNodePtr)((xmlNsPtr)cur)->next;
|
||||||
ctxt->ancestor = cur->parent;
|
ctxt->ancestor = cur->parent;
|
||||||
}
|
}
|
||||||
if ((cur->prev != NULL) && (cur->prev->type == XML_DTD_NODE))
|
if ((cur->prev != NULL) && (cur->prev->type == XML_DTD_NODE))
|
||||||
|
Reference in New Issue
Block a user