const node = document.createElement('div');
node.innerHTML = "<p>Text 1</p>"
For this JS HTMLElement, how should I run an XPath against it using SaxonJS?
const res = saxonJs.XPath.evaluate('//p', node);
Has error Context item for '/' must be a node
const res = saxonJs.XPath.evaluate('*', node);
Has error Context item for child axis is not a node - supplied:HashTrie map{}
MORE DETAILS: The ultimate goal is to run XPath 3.0 against an HTML DOM (parsed from a string) in Node JS, so I'm open to using other modules or methods