Whenever I try to load my site in IE8, it keeps reverting back to Quirks Mode and the page looks all distorted. I can manually switch it to IE8 document mode via developer tools and it works fine, but I'm puzzled as to why it keeps switching back to Quirks Mode on its own.
I have included <!DOCTYPE html>
so it shouldn't be happening. The top of the page includes this code, generated by the CMS:
(ignore this line, it's here to show the blank lines in the source code)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE 7]> <html class="ie7 no-js" lang="en"> <![endif]-->
<!--[if lte IE 8]> <html class="ie8 no-js" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="not-ie no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
Any suggestions or insights would be greatly appreciated. Thank you!