2015-01-23 20 views
10

ho:Perché http-equiv = "X-UA-Compatible" content = "IE = edge, chrome = 1" non è convalidato in W3C Validator?

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> 

sulla convalida in http://validator.w3.org/ ottengo questo errore:

A meta element with an http-equiv attribute whose value is X-UA-Compatible must have a content attribute with the value IE=edge.

Sto lavorando con .NET/Razor e, naturalmente, localmente utilizzando IIS. C'è un modo per risolvere questo problema senza modificare alcun file web.config? Grazie in avanti.

+1

Perché si desidera aggiungere 'Chrome = 1' a' content'? – Teemu

risposta

11

In base alla discussione this nel W3C, non è consentita la parte chrome=1.

È possibile passare la convalida utilizzando proprio come questo:

<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
Problemi correlati