Why does http-equiv=“X-UA-Compatible” content=“IE=edge,chrome=1” is not validated in W3C Validator? [duplicate]

拈花ヽ惹草 提交于 2019-12-22 03:42:29

问题


I have:

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

On validation in http://validator.w3.org/ I get this error:

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

I am working with .NET/Razor and of course locally using IIS. Is there a way to solve this without editing any web.config files? Thanks in forward.


回答1:


According to this discussion in the W3C, using the chrome=1 part is not allowed.

You can pass the validation by using just like this:

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


来源:https://stackoverflow.com/questions/28108614/why-does-http-equiv-x-ua-compatible-content-ie-edge-chrome-1-is-not-validate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!