DOMParser is not defined in Microsoft edge

i have this code

var
xml = new DOMParser(); xml = xml.parseFromString(xmlhttp.responseText, 'text/xml');
and the agent that runs has this code

Set domParser=session.CreateDOMParser(doc.Request_Content(0))
domParser.Process

I get this error message : ReferenceError: DOMParser is not defined

This code works in ie 11 and in Chrome, but in edge it doesn't work.
https://developer.mozilla.org/en-US/docs/Web/API/DOMParser

What is the solution to run the code on edge


Hi Vinicius,

Thanks for sharing this. It might be an issue with Edge browser in terms of compatibility.

Not sure if this will work but have you tried to run the code after enabling highlighted setting.

Regards,

Amit Sharma

thanks for the help , but updating edge to the latest version the code works.

Thanks for sharing Vinicius.

It will be helpful for many other users for sure.

Regards,

Amit Sharma