Here’s the link:
(right-click in IE and Add to Favorites > Put in Links or FavoritesBar folder for easiest access!)
Here’s the story:
You might have heard that Internet Explorer 8 has multiple sets of rules for rendering HTML markup, so if you’ve got good clean efficient standards based content then IE 8 should cruise through in high gear (IE 8 Mode) and display approximately the same thing the other browsers show (I said approximately!).
I was naively assuming the improper render mode issues wouldn’t be anything I’d have to deal with because, after all, I do things RIGHT! Right? I’m all about W3C Standards… avoid deprecated HTML and browser hacks, close all empty elements, try to keep markup semantic, etc etc. I’m working on this latest masterpiece, a hefty municipal website built in the DotNetNuke Framework, sporting some slick 3rd party modules and lots of customised CSS. My inbox alert lights up from time to time with a complaint from a poor city employee who is still forced to browse from Internet Explorer 6. No, the site doesn’t look right in IE6 but it functions and we either move forward to embrace the future or we linger behind to rescue the past, amiright? From Firefox or Chrome the site looks pretty good.
Here’s the script:
(except I use if-then conditionals here for readability and ternary conditionals in actual link)
It shows the Internet Explorer Compatibility Mode (render mode) along with the DOCTYPE and the X-UA-Compatible meta content value which if found should match the render mode since the meta value is supposed to force the render mode.
This is for Internet Explorer but it should show the DOCTYPE and any X-UA-Compatibile meta values on the page in other browsers (still having some issues with other browsers). And I’d love to add a keyboard short-cut to this but there’s an issue assigning keyboard shortcuts to invalid files apparently, bummer! Anyone know how to do this?
Thanks to someone at J&C Group for digging the key reference to the DOCTYPE in Internet Explorer (document.all.text) out of another older thread.