mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
General fixes, XPointer improvements:
- HTMLparser.c: some fixes on auto-open of html/head/body - encoding.c: fixed a compilation error on some gcc env - xpath.c xpointer.[ch] xpathInternals.h: improved the XPointer implementation - test/XPath/xptr/strpoint test/XPath/xptr/strrange3: added related XPointer tests and associated results Daniel
This commit is contained in:
14
xpath.c
14
xpath.c
@ -4421,12 +4421,16 @@ xmlXPathEvalFilterExpr(xmlXPathParserContextPtr ctxt) {
|
||||
CHECK_ERROR;
|
||||
SKIP_BLANKS;
|
||||
|
||||
if (CUR != '[') return;
|
||||
|
||||
CHECK_TYPE(XPATH_NODESET);
|
||||
|
||||
while (CUR == '[') {
|
||||
xmlXPathEvalPredicate(ctxt);
|
||||
if ((ctxt->value == NULL) ||
|
||||
((ctxt->value->type != XPATH_NODESET) &&
|
||||
(ctxt->value->type != XPATH_LOCATIONSET)))
|
||||
XP_ERROR(XPATH_INVALID_TYPE)
|
||||
|
||||
if (ctxt->value->type == XPATH_NODESET)
|
||||
xmlXPathEvalPredicate(ctxt);
|
||||
else
|
||||
xmlXPtrEvalRangePredicate(ctxt);
|
||||
SKIP_BLANKS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user