I'm trying to get IE9 to load my page with IE9 standards...
I noticed having <!DOCTYPE HTML>
puts the damn thing into quirks mode... Which pretty much breaks everything on page...
How do I get IE to stick to IE9 Standards?
Make sure you put the DOCTYPE right at the beginning of your HTML document. Anything before the DOCTYPE, like a comment or an XML declaration will trigger quirks mode in Internet Explorer 9 and older. In HTML5, the only purpose of the DOCTYPE is to activate full standards mode.
Quirks mode means your page is running without a document type declared, the document type is defined at the very top of a page and it denotes how the browser should read the HTML.
To maintain compatibility with the greatest possible number of web pages, modern web browsers are generally developed with multiple rendering modes: in "standards mode" pages are rendered according to the HTML and CSS specifications, while in "quirks mode" attempts are made to emulate the behavior of older browsers.
Placing:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
in the <head>
tag should do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With