I had to create this fix so that IE9+ when using IE8- Document Mode will still run the script.
// If were not in standards mode, IE is too old / new or we can't create
// an XMLHttpRequest object then we should get out now.
if (doc.compatMode != 'CSS1Compat' || ieVersion<6 || ieVersion>8 || !xhr) {
if(document.documentMode > 8 || typeof document.documentMode === "undefined") {
return;
}
}
I had to create this fix so that IE9+ when using IE8- Document Mode will still run the script.