Skip to content

Commit

Permalink
setvalue uses inscopecontext
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernT committed Dec 16, 2024
1 parent 727fff1 commit cb5c479
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/actions/fx-setvalue.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import '../fx-model.js';
import { AbstractAction } from './abstract-action.js';
import { evaluateXPath } from '../xpath-evaluation.js';
import { Fore } from '../fore.js';
import getInScopeContext from "../getInScopeContext";

/**
* `fx-setvalue`
Expand Down Expand Up @@ -45,7 +46,8 @@ export default class FxSetvalue extends AbstractAction {
super.perform();
let { value } = this;
if (this.valueAttr !== null) {
[value] = evaluateXPath(this.valueAttr, this.nodeset, this, this.detail);
const inscopeContext = getInScopeContext(this, this.valueAttr);
[value] = evaluateXPath(this.valueAttr, inscopeContext, this, this.detail);
} else if (this.textContent !== '') {
value = this.textContent;
} else {
Expand Down

0 comments on commit cb5c479

Please sign in to comment.