1
0
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:
Daniel Veillard
2000-11-24 23:36:01 +00:00
parent 851c59c20e
commit f62ceffb7e
16 changed files with 400 additions and 59 deletions

14
xpath.c
View File

@ -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;
}