The HTML5 doctype is not triggering standards mode in IE8

Posted by El Guapo on Stack Overflow See other posts from Stack Overflow or by El Guapo
Published on 2012-11-12T10:47:52Z Indexed on 2012/11/14 11:01 UTC
Read the original article Hit count: 254

i work for a company where all our sites currently use the XHTML 1.0 transitional doctype (yes i know it is very old school). I want to change them all to use the HTML5 doctype seeing as it is backwards compatible. One of the reasons why i want to make the switch is because in IE8 if someone has the developer tools installed then the old XHTML doctype switches the browser into compatibility mode and renders the page as IE7. From reading up on it i was led to believe that the HTML5 doctype will set any page to render in standards mode, but this is not happening when i test it on our staging server it still flips into IE7 rendering mode.

The weird thing is if i save the page with HTML5 doctype locally and open it, it is rendering in IE8 standards mode. There must be something else causing it to drop into compatibility IE7 rendering. Any ideas what this could be?

Below is the head of the test page i have been looking at:

    <!DOCTYPE html >

<html xmlns="" xmlns:og="" xmlns:fb="">

    <title>Burton - Mens Clothing - Mens Fashion - Burton Menswear</title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <meta name="description" content="Burton is one of the UK's leading men's clothing &amp; fashion retailers, with a range of men's clothing designed to make you look &amp; feel good. Find formal &amp; casual clothes &amp; accessories for men online at Burton menswear"/>
    <meta name="keywords" content="menswear, clothes for men, clothing for men, men clothes, men's fashion, men's wear, men's clothing online, men's clothes online, men's clothes shop, burton men's, burton menswear, burton uk, burton"/>

    <script type="text/javascript">document.getElementsByTagName('html')[0].className = 'js';</script>

    <link rel="stylesheet" type="text/css" href="" />
    <link rel="stylesheet" type="text/css" href="" media="print"/>

    <link rel="stylesheet" type="text/css" href="" />

    <!--[if lt IE 8]>
    <link rel="stylesheet" href="" type="text/css" media="screen, projection">

    <meta http-equiv="content-language" content="en-gb" />

    <link rel="shortcut icon" type="image/x-icon" href="" />
    <link rel="search" type="application/opensearchdescription+xml" title=" Search"  href=""/>
    <!-- Start Summit Tag -->
    <script type="text/javascript"> 
  var __stormJs = "";
    <script type="text/javascript" src=""></script>
    <!-- End Summit Tag -->
    <!-- Start QuBit Tag -->
    <script src=// async defer></script>
    <!-- End QuBit Tag -->
    <link type="text/css" rel="stylesheet" href="" ></link>


© Stack Overflow or respective owner

Related posts about html

Related posts about html5