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

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

问题描述

我使用了HTML5 Boilerplate正在使用的相同的 meta ,并且W3C HTML验证器抱怨说:


不良值X-UA-元素meta上属性http-equiv的兼容性

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


这个 meta 标签?

解决方案

X-UA兼容不是标准HTML(FSVO标准包括出现在规范所引用的公共可编辑的wiki页面上)或者验证器未与当前版本保持同步在撰写本文时(20130326),X-UA兼容性出现在维基页面的一个部分下,该部分声明:以下建议的扩展可以做到尚未符合HTML规范中的所有注册要求,因此尚未在有效文档中被允许。所以验证器是正确的拒绝这个值。


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

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

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

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兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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