问题描述
我使用了HTML5 Boilerplate正在使用的相同的 meta
,并且W3C HTML验证器抱怨说:
这个 meta
标签?
X-UA兼容不是标准HTML(FSVO标准包括出现在规范所引用的上)或者验证器未与当前版本保持同步在撰写本文时(20130326),X-UA兼容性出现在维基页面的一个部分下,该部分声明:以下建议的扩展可以做到尚未符合HTML规范中的所有注册要求,因此尚未在有效文档中被允许。所以验证器是正确的拒绝这个值。
I have used the same meta
that HTML5 Boilerplate is using, and the W3C HTML validator complains:
What is wrong with this meta
tag?
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.
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.
这篇关于Bad value X-UA-元素meta上的属性http-equiv兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!