Index: third_party/libxml/src/xpath.c |
diff --git a/third_party/libxml/src/xpath.c b/third_party/libxml/src/xpath.c |
index 113bce64dd9752c4dcea158b26d8a7b4901605f6..a0d993a1fb5087184a911dafcada604b365865bb 100644 |
--- a/third_party/libxml/src/xpath.c |
+++ b/third_party/libxml/src/xpath.c |
@@ -10691,13 +10691,16 @@ xmlXPathCompPathExpr(xmlXPathParserContextPtr ctxt) { |
lc = 1; |
break; |
} else if ((NXT(len) == '(')) { |
- /* Note Type or Function */ |
+ /* Node Type or Function */ |
if (xmlXPathIsNodeType(name)) { |
#ifdef DEBUG_STEP |
xmlGenericError(xmlGenericErrorContext, |
"PathExpr: Type search\n"); |
#endif |
lc = 1; |
+ } else if (ctxt->xptr && |
+ xmlStrEqual(name, BAD_CAST "range-to")) { |
+ lc = 1; |
} else { |
#ifdef DEBUG_STEP |
xmlGenericError(xmlGenericErrorContext, |