We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e6dc9c commit d15851eCopy full SHA for d15851e
src/xpath/expressions/path-expr.ts
@@ -17,7 +17,7 @@ export class PathExpr extends Expression {
17
let nodes1 = [];
18
if (ctx.returnOnFirstMatch) {
19
for (let i = 0; i < nodes.length; ++i) {
20
- nodes1 = this.rel.evaluate(ctx.clone(nodes, i)).nodeSetValue();
+ nodes1 = this.rel.evaluate(ctx.clone(nodes, undefined, i)).nodeSetValue();
21
if (nodes1.length > 0) {
22
break;
23
}
@@ -26,7 +26,7 @@ export class PathExpr extends Expression {
26
27
28
29
- const nodes0 = this.rel.evaluate(ctx.clone(nodes, i)).nodeSetValue();
+ const nodes0 = this.rel.evaluate(ctx.clone(nodes, undefined, i)).nodeSetValue();
30
for (let ii = 0; ii < nodes0.length; ++ii) {
31
nodes1.push(nodes0[ii]);
32
0 commit comments