adoyle
V2EX  ›  HTML

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

  •  
  •   adoyle ·
    adoyle-h · Mar 27, 2017 · 4721 views
    This topic created in 3370 days ago, the information mentioned may be changed or developed.

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

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

    2 replies    2017-03-27 20:48:32 +08:00
    otakustay
        1
    otakustay  
       Mar 27, 2017
    whatwg 差不多是 w3 的技术更新 beta 版,我建议看 whatwg 再结合浏览器实际实现的进程
    adoyle
        2
    adoyle  
    OP
       Mar 27, 2017
    @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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   903 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 22:42 · PVG 06:42 · LAX 15:42 · JFK 18:42
    ♥ Do have faith in what you're doing.