V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Dive into HTML5
http://diveintohtml5.org/
adoyle
V2EX  ›  HTML

HTML5 标准,现在应该看 w3c 的还是 whatwg 的?

  •  
  •   adoyle ·
    adoyle-h · 2017-03-27 13:32:01 +08:00 · 3933 次点击
    这是一个创建于 2558 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我看现在 w3c 已经出了 HTML 5.1 Recommendation,而 whatwg 也一直有更新。

    通常来说,我们看 HTML5 标准文档,以 w3c 还是 whatwg 的为准?

    2 条回复    2017-03-27 20:48:32 +08:00
    otakustay
        1
    otakustay  
       2017-03-27 17:13:56 +08:00
    whatwg 差不多是 w3 的技术更新 beta 版,我建议看 whatwg 再结合浏览器实际实现的进程
    adoyle
        2
    adoyle  
    OP
       2017-03-27 20:48:32 +08:00
    @otakustay 是的。

    - https://news.ycombinator.com/item?id=12848419
    - https://www.reddit.com/r/javascript/comments/5swe9b/what_is_the_difference_between_the_w3c_and_the/

    看了这些评论,感觉争议还是挺大的。不过总的来说 w3c 趋于保守,顾虑历史包袱,还有很多政治问题。 whatwg 作为最新标准 (Living Standard) 更贴近浏览器的最新实现,比较务实,文档修正比较频繁。

    另外, https://diffofhtmls.herokuapp.com/ 这个网站提供了 w3c 和 whatwg 文档的 diff
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3239 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:41 · PVG 19:41 · LAX 04:41 · JFK 07:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.