mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Added support for non-prefixed default namespace selectors
This commit is contained in:
parent
68278267e1
commit
3412372d1e
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class XPathExpression extends Operation {
|
||||||
|
|
||||||
let nodes;
|
let nodes;
|
||||||
try {
|
try {
|
||||||
nodes = xpath.select(query, doc);
|
nodes = xpath.parse(query).select({ node: doc, allowAnyNamespaceForNoPrefix: true });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new OperationError(`Invalid XPath. Details:\n${err.message}.`);
|
throw new OperationError(`Invalid XPath. Details:\n${err.message}.`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue