rem: var dom; if (window.DOMParser) { var parser = new DOMParser(); dom = parser.parseFromString(xml, "text/xml"); if (!dom.documentElement || dom.documentElement.tagName == "parsererror") { var message = dom.documentElement.firstChild.data; message += "\n" + dom.documentElement.firstChild.nextSibling.firstChild.data; throw message; } return dom; 
add: var dom; if (window.DOMParser) { var parser = new DOMParser(); dom = parser.parseFromString(xml, "text/xml"); if (!dom.documentElement || dom.documentElement.tagName == "parsererror") { var message = dom.documentElement.firstChild.data; message += "\n" + dom.documentElement.firstChild.nextSibling.firstChild.data; throw message; 
context: DWREngine._unserializeDocument = function(xml) {    var dom;    if (window.DOMParser) {        var parser = new DOMParser();        dom = parser.parseFromString(xml, "text/xml");        if (!dom.documentElement || dom.documentElement.tagName == "parsererror") {            var message = dom.documentElement.firstChild.data;            message += "\n" + dom.documentElement.firstChild.nextSibling.firstChild.data;            throw message;        }        return dom;    }    else if (window.ActiveXObject) {        dom = DWREngine._newActiveXObject(DWREngine._DOMDocument);        dom.loadXML(xml);        // What happens on parse fail with IE?        return dom;    }    //else if (window.XMLHttpRequest) {    //    // Hack with XHR to get at Safari's parser    //    var req = new XMLHttpRequest;    //    var url = "data:application/xml;charset=utf-8," + encodeURIComponent(xml);    //    req.open("GET", url, false);    //    req.send(null);    //    return req.responseXML;    //}    else {        var div = document.createElement('div');        div.innerHTML = xml;        return div;    }};
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js