HTML5:W3C与WHATWG。哪个给出了最权威的规范? [英] HTML5: W3C vs WHATWG. Which gives the most authoritative spec?

查看:116
本文介绍了HTML5:W3C与WHATWG。哪个给出了最权威的规范?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在半途通过一个html解析器,发现html5明确定义 解析形成的html 的经验法则。 (我曾经从DTD推断它们,感叹)



我喜欢这个事实,但我很清楚html5还没有最终确定(也是我想知道它是否会这样),它不是由W3C开发,而是由WHATWG开发。



搜索我需要的规格与:







如果不是针对章节编号,我会引用这些编号。但不同的编号让我感到惊讶。 哪个版本应该是最权威的?



WHATWG似乎有更多版块,并且已被添加到因为W3C上传了候选人推荐。

W3C会更新WHATWG版本吗?

或者他们会坚持他们目前的候选人,直到他们得到到官方推荐状态?



当有疑问时,我们应该遵循哪些html5规范?

解决方案

这取决于你问谁。真。这个政治丑陋。更糟糕的是,规范还不完全稳定。我会认为这两个规范在解析部分大致相同,因为第1.1.1节列出了差异并没有提到解析。但后来我做了一个网页差异,我发现文本中存在细微的差异。我会说,如果你实际上正在实施规范,以便与所涉及的参与者讨论规范之间的差异,请使用公共邮件列表。无论如何,我很抱歉,我不能给你一个明确的答案。


I'm in halfway trough an html parser and found html5 defined explicitly the rules of thumb for parsing ill formed html. (And I used to infer them from DTDs, sigh)

I love that fact, but I know well that html5 isn't finalized yet (also I wonder if it ever will) and that it isn't developed by the W3C, but by the WHATWG.

Searching for the spec I need I'm presented with:

or

If it wasn't for the section numbers I would induce those are simply the same. But the different numbering makes me wonder. Which version is, supposedly, the most authoritative?

WHATWG seems to have more sections, and to have been added to since W3C uploaded its candidate recommendation.

Will W3C update to the WHATWG version?
Or will they stick to their current candidate until it gets to the official recommendation status?

Which html5 spec are we poor devils supposed to follow, when in doubt?

解决方案

It depends on who you ask. Really. The politics of this are ugly. And to make matters worse, the specifications aren't fully stable yet. I would have thought that the two specifications would be largely the same in their parsing sections since section 1.1.1 which lists the differences does not mention parsing. But then I did a web diff and I saw that there are subtle differences in the text. I would say that if you are actually implementing the specification to talk to the players involved about any differences you see between the specs, using the public mailing lists. Anyway, I am sorry I can't give you a clear cut answer.

这篇关于HTML5:W3C与WHATWG。哪个给出了最权威的规范?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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