元素元上的属性 http-equiv 的 X-UA-Compatible 值错误 [英] Bad value X-UA-Compatible for attribute http-equiv on element meta

查看:24
本文介绍了元素元上的属性 http-equiv 的 X-UA-Compatible 值错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了与 HTML5 Boilerplate 相同的 meta,但 W3C HTML 验证器抱怨:

I have used the same meta that HTML5 Boilerplate is using, and the W3C HTML validator complains:

元素元上的属性 http-equiv 的 X-UA-Compatible 值错误.

Bad value X-UA-Compatible for attribute http-equiv on element meta.

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

这个 meta 标签有什么问题?

What is wrong with this meta tag?

推荐答案

X-UA-Compatible 不是标准"HTML(涉及出现在 规范引用的可公开编辑的 wiki 页面)或验证器未更新该 wiki 的当前状态.

Either X-UA-Compatible is not "standard" HTML (FSVO "standard" that involves appearing on a publicly editable wiki page referenced by the specification) or the Validator isn't up to date with the current status of that wiki.

在撰写本文时 (20130326) X-UA-Compatible 出现在 wiki 页面的一个部分下,该部分指出:以下提议的扩展尚未符合 HTML 规范中的所有注册要求,因此尚未允许在有效文件中."所以验证器拒绝这个值是正确的.

At the time of writing (20130326) X-UA-Compatible appears on the wiki page under a section that states: "The following proposed extensions do not yet conform to all the registration requirements in the HTML spec and are therefore not yet allowed in valid documents." So the validator is correct to reject this value.

这篇关于元素元上的属性 http-equiv 的 X-UA-Compatible 值错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆