lavoro per un'azienda in cui attualmente tutti i nostri siti utilizzano il doctype transitorio XHTML 1.0 (sì, so che è molto vecchio). Voglio cambiarli tutti per usare il doctype HTML5 visto che è retrocompatibile. Uno dei motivi per cui voglio fare il passaggio è perché in IE8 se qualcuno ha installato gli strumenti di sviluppo, allora il vecchio doctype XHTML cambia il browser in modalità di compatibilità e rende la pagina come IE7. Dalla lettura su di esso sono stato indotto a credere che il doctype HTML5 imposterà qualsiasi pagina per renderizzare in modalità standard, ma questo non succede quando lo provo sul nostro server di staging che gira ancora nella modalità di rendering di IE7.Il doctype HTML5 non attiva la modalità standard in IE8
La cosa strana è che se salvi localmente la pagina con doctype HTML5 e la apro, viene resa in modalità standard IE8. Deve esserci qualcos'altro che lo ha fatto cadere nella compatibilità con il rendering IE7. Qualche idea su cosa potrebbe essere?
sotto è il capo della pagina di test che sono stati a guardare:
<!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>
Stab in the dark .. ma, prova ad aggiungere questo al tuo '
': '' – Labu'xmlns = "http://www.w3.org/1999/xhtml" 'dovrebbe essere il problema. – xiaoyi