Problem now was that the parseXML method doesn't take ie9/ie10 into consideration. This is the new parseXML that I concocted. The problem that now arose was that the converter method was still pointing to the old parseXML method so I had to add a few more lines updating the converters object.
If you know of a better solution please comment below.
$.parseXML = function ( data ) {
var xml, tmp;
if ( !data || typeof data !== "string" ) {
return null;
}
try {
if ( window.DOMParser && navigator.userAgent.indexOf("MSIE 9") == -1 && navigator.userAgent.indexOf("MSIE 10") == -1) { // Standard
tmp = new DOMParser();
xml = tmp.parseFromString( data , "text/xml" );
} else { // IE
xml = new ActiveXObject( "Microsoft.XMLDOM" );
xml.async = "false";
xml.loadXML( data );
}
} catch( e ) {
xml = undefined;
}
if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
jQuery.error( "Invalid XML: " + data );
}
return xml;
}
$.ajaxSetup({
converters:{"* text": window.String, "text html": true, "text json": jQuery.parseJSON, "text xml": $.parseXML}
})