What is the best way to have ie9 render a < !DOCTYPE html > .cfm page in standards mode rather than quirks?
I’ve been having this issue for a while and suspiciously, only on coldfusion sites! I just got the ‘bright’ idea of changing the file extension to .html and BAM! the pages rendered out perfectly in standards mode.
Needless to say, this was the first collection of pages that I didn’t have to develop in a test environment, since all they use are html5, css, jquery/javascript which gave me the idea of changing the filename extension to html.
Can anyone share how they get around this (without changing the filename extension)? I would be very much indebted to you!
Thank you in advance.
Make sure you’re setting the correct content type for the page:
Also check that ColdFusion isn’t putting anything before the
DOCTYPEdeclaration.Finally, be aware that IE will render intranet pages in quirks mode by default in a number of situations even when you’ve done everything right.