即使 W3c 在独角兽验证器中也无效?
如果我没记错的话,W3c.org 负责 html 和 css 标准,但它自己的网站对其自己的验证器无效,任何人都可以清楚这是什么吗?
http://validator.w3.org/ unicorn/check?ucn_uri=www.w3.org%2F&ucn_task=conformance#
If I am not wrong W3c.org is responsible for html and css standard but its own site is not valid with its own validator , Can anybody clear what is this??
http://validator.w3.org/unicorn/check?ucn_uri=www.w3.org%2F&ucn_task=conformance#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
他们正在使用 CSS 3(以及一些供应商特定的某些属性的实验实现,他们认为这些属性足以支持使用),而您正在针对 CSS 2.1 进行测试。
验证是一种工具,而不是竞争。如果您了解这样做的后果(偏离规范的具体方式),就有很多充分的理由可以偏离规范。
They are using CSS 3 (with some vendor specific experimental implementations of certain properties that they have decided are well enough supported to use) and you are testing against CSS 2.1.
Validation is a tool, not a competition. There are plenty of good reasons to deviate from the specification providing you understand the consequences of doing so (for the specific way in which you deviate).
验证器正在根据 CSS 2.1 进行验证,但是 w3c 站点使用 CSS 3(加上一些非标准浏览器特定扩展)。
编辑:此外,CSS 是否验证并不重要,只要它符合一般语法规则即可,这样浏览器仍然可以读取它并忽略它不知道的任何选择器或属性。
The validator is validating against CSS 2.1, however the w3c site uses CSS 3 (plus some non-standard browser specific extensions).
EDIT: Also, it doesn't really matter if the CSS validates, as long it complies to the general syntax rules, so that browsers still can read it and just ignore any selectors or properties it doesn't know.