Я работаю в компании, где все наши сайты в настоящее время используют переходный тип документа XHTML 1.0 (да, я знаю, что это очень старая школа). Я хочу изменить их все, чтобы использовать тип документа HTML5, поскольку он обратно совместим. Одна из причин, по которой я хочу сделать этот переход, заключается в том, что в IE8, если у кого-то установлены инструменты разработчика, старый док-тип XHTML переключает браузер в режим совместимости и отображает страницу как IE7. Прочитав его, я пришел к выводу, что тип документа HTML5 устанавливает любую страницу для рендеринга в стандартном режиме, но этого не происходит, когда я тестирую его на нашем промежуточном сервере, он все равно переключается в режим рендеринга IE7.
Странно то, что если я сохраню страницу с типом документа HTML5 локально и открою ее, она будет отображаться в стандартном режиме IE8. Должно быть что-то еще, что заставляет его упасть в совместимость с рендерингом IE7. Есть идеи, что это может быть?
Ниже приведен заголовок тестовой страницы, на которую я смотрел:
<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<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 & fashion retailers, with a range of men's clothing designed to make you look & feel good. Find formal & casual clothes & 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="http://eu.burton-menswear.com/wcsstore/ConsumerDirectStorefrontAssetStore/images/colors/color2/v3/css/screen.css" />
<link rel="stylesheet" type="text/css" href="http://eu.burton-menswear.com/wcsstore/ConsumerDirectStorefrontAssetStore/images/colors/color2/v3/css/print.css" media="print"/>
<link rel="stylesheet" type="text/css" href="http://eu.burton-menswear.com/wcsstore/ConsumerDirectStorefrontAssetStore/images/colors/color2/v3/css/brand.css" />
<!--[if lt IE 8]>
<link rel="stylesheet" href="http://eu.burton-menswear.com/wcsstore/ConsumerDirectStorefrontAssetStore/images/colors/color2/v3/css/ie.css" type="text/css" media="screen, projection">
<![endif]-->
<meta http-equiv="content-language" content="en-gb" />
<link rel="shortcut icon" type="image/x-icon" href="http://eu.burton-menswear.com/favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" title="burton.co.uk Search" href="http://eu.burton-menswear.com/burton-search.xml"/>
<!-- Start Summit Tag -->
<script type="text/javascript">
var __stormJs = "t1.stormiq.com/dcv4/jslib/3286_D92B7532_4A18_46A8_864A_5FDF1DF25844.js";
</script>
<script type="text/javascript" src="http://eu.burton-menswear.com/javascript/track.js"></script>
<!-- End Summit Tag -->
<!-- Start QuBit Tag -->
<script src=//d3c3cq33003psk.cloudfront.net/opentag-31935-42109.js async defer></script>
<!-- End QuBit Tag -->
<link type="text/css" rel="stylesheet" href="http://reviews.br.wcstage.arcadiagroup.ltd.uk/bvstaging/static/6028-en_gb/bazaarvoice.css" ></link>
</head>
<head>
:<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- person Labu   schedule 12.11.2012xmlns="http://www.w3.org/1999/xhtml"
должно быть проблемой. - person xiaoyi   schedule 12.11.2012