New Facebook like button HTML validation

前端 未结 15 1952
抹茶落季
抹茶落季 2020-12-02 11:34

After adding the new facebook like button on my page, it\'s no longer validates using XHTML strict standard. The two errors I come across are:

  1. All of the
15条回答
  •  暖寄归人
    2020-12-02 11:56

    @Eric I hope you eventually found what you were looking for.

    Twitter integration has its difficulties if you want to empower developers to validate irrespective of XHTML Strict 1.0 or HTML5. Facebook, on the other hand, is down right impossible with its custom FBML tags.

    On our last project my friend Jason and I knew two things for certain:

    1. We were going to validate XHTML Strict 1.0 using Facebook's Like Button
    2. We were not going to add Technical Debt by fudging our DOCTYPE or xmlns

    The solution is to use a flexible, asynchronous JavaScript module. Thankfully, we had some help and guidance along the way: http://techoctave.com/c7/posts/40-xhtml-strict-tweet-button-and-facebook-like-button

提交回复
热议问题