DOM Parser not working in IDJS script
Hi All,
I'm developing the UXP scripts for InDesign. While reading the HTML file, we use a DOM Parser to read the HTML file.
our UXP is not supporting to read the DOM parser. Kindly any one resolve this and will appreciate.
//======================================
const file = await ufs.getFileForOpening({mode: uxpfs.modes.readWrite, type: "file"});
const text = await file.read({format: formats.utf8});
if (window.DOMParser) {
const parser = new DOMParser();
var manifest = parser.parseFromString(text, "text/xml");
}
//==================================
Thanks & Regards,
Harihara Sudhan T R.,
