Perhaps Mantis devs can add this to next release?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

Perhaps Mantis devs can add this to next release?

Post by mushu »

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