Perhaps Mantis devs can add this to next release?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
mushu
Posts: 145
Joined: Jan 04, 2017 12:41 pm

Perhaps Mantis devs can add this to next release?

Post by mushu » Aug 15, 2018 6:02 pm

One liner in Javascript for detecting if Internet Explorer is in Compatibility mode:

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!");
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.

Post Reply