Perhaps Mantis devs can add this to next release?
Posted: 15 Aug 2018, 23:02
One liner in Javascript for detecting if Internet Explorer is in Compatibility mode:
Would be great to have this be a config option to display a message somewhere on the page. IE in Compat mode really plays havoc with CSS, messing everything up. At least one bug report in these forums could have been avoided if this was an option.
Code: Select all
var trident=navigator.userAgent.match(/Trident\/(\d+)/);var msie=navigator.userAgent.match(/MSIE.(\d+)/);if(parseInt(trident[1],10)+4!=parseInt(msie[1],10))document.write("<br>IE in Compatibility mode!");