mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +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;
|
||||
if (cur == NULL)
|
||||
return (NULL);
|
||||
if (cur->type == XML_NAMESPACE_DECL)
|
||||
cur = (xmlNodePtr)((xmlNsPtr)cur)->next;
|
||||
ctxt->ancestor = cur->parent;
|
||||
}
|
||||
if ((cur->prev != NULL) && (cur->prev->type == XML_DTD_NODE))
|
||||
|
Reference in New Issue
Block a user