SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2011
    The land of nod
    0 Post(s)
    0 Thread(s)

    How can you validate your code against W3C with the Google+ proprietary code inplace?

    I have just implemented a few social media avenues into my latest portfolio website, but I cannot see how I am supposed to get valid XHTML code via the W3C validator, when I have the Google+ proprietary code embedded with the core XHTML code.

    My domain is :

    You will notice on the index/homepage that the Google+ button is different in shape/size to any other page on my site, and this is because I though I would try and remove the attribute size="tall" from within the proprietary code, all this does is actually remove 1 less error, so the index page has 1 error yet the contact page has 2 errors.

    Any help greatly appreciated


  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Melbourne, AU
    462 Post(s)
    8 Thread(s)
    I you want a fully validated page, you have to ditch all that proprietary horror. Mind you, ask yourself what the point of validation is. That code is well tested and not likely to break anything. Validation is just a way of checking for potential issues. If the page isn't going to break, no one cares about validation 'errors' and warnings. they are just a guide. If you are after bragging rights, well, honestly, no one else cares, so forget about it! All you really need is to be confident that the page won't break with that code in it, and it won't.

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Sydney, NSW, Australia
    25 Post(s)
    1 Thread(s)
    Google do provide a version of their +1 script that works entirely from JavaScript so that you don't have to install any proprietary garbage into your HTML.
    Stephen J Chapman, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts