So there is this piece of code that is causing me problems in IE 11 and chrome too. I am not sure what is happening since it should be working, this is old code I am helping fix, but it looks good to me. I am creating an xml document object and calling the setproperty method, but it is saying that the function is undefined. This is what my code looks like
if (window.DOMParser) {
var parser = new DOMParser();
xmlDoc = parser.parseFromString(xml, "text/xml");
} else {
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = false;
xmlDoc.loadXML(xml);
}
console.log(xmlDoc);
console.log(typeof xmlDoc.setProperty);
and the result of the console.log
Anybody knows what is happening?