Replies: 1 comment
-
The thing that you named In case this is referring to Line 1527 in 5eb649e DomParser .
Our main file index.js (and also dom-parser.js) provides an export called Also for those exports you need to access them by either destrucuturing them (if your environment supports it) const {DOMParser} = require(…);
new DOMParser().parseFromString(content) Or accessing it as a property: const xmldom = require(…);
new xmldom.DOMParser().parseFromString(content); If dom.js is your code please provide it for further analysis if required. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to use xmldom in a non browser Rhino engine. I'm getting the following error:
Exception in thread "main" org.mozilla.javascript.EcmaError: TypeError: [object Object] is not a function, it is object. (<cmd>#3)
when executing
const parser = new DomParser();
Any suggestions if I can accomplisged that ? Thx.
I have added the 'js' scripts in the src/main/resource & I used:
Beta Was this translation helpful? Give feedback.
All reactions