It's Fixpert, the bike lane of the internet, a blog about track bikes, fixed gear bicycles, comics, illustration, random acts of awesomeness!

Google AdSense != Valid Code

Is anyone else bummed that plopping the Google code into their site(s) causes xhtml validation errors? The Google Firefox Toolbar in my sidebar appears to generate about 12 errors, and AdSense is currently generating about 26 errors. What a bummer, I’m sure it would be easy to clean up this code, I just don’t understand why it hasn’t already happened?

^ 5 Comments...

  1. Xaprb

    But not for me, since I set the AdBlock extension to block their javascript! Hee hee hee!

    The only validation errors I see on this page are that you have your H1 inside your A in the title, instead of the A inside the H1. I don’t think block-level elements are supposed to go inside As.

  2. Sally ala Fixpert

    Ha ha, yep you caught me — thanks.

    I guess we’re getting off topic here, but why not? The image replacement technique that I’ve got here on Fixpert is this: I’ve got a text-indent: -3000px; on the h1, and then I’m using a background-image to replace the text. Of all the available image replacement options, this one seemed the best, but as I remember, correctly nesting the anchor tag inside the h1 was causing issues in IE (I know, surprise right?). I’m all ears if you have suggestions! Thanks!

  3. Tim McCormack

    I’ve pretty much given up on image replacement. The Gilder/Levin Method is nice, but beyond that (including Flash replacement), every other method seems to suck. I kind of like the idea of just relying on the alt text.

    I’ve also decided not to design for IE anymore on my personal site. If I put up a portfolio site, that’s a different matter.

    As for Adsense, I’m with Xaprb. Adblock is wonderful…

  4. Malarkey

    I was once :)

    http://www.stuffandnonsense.co.uk/archives/dear_mr_google.html

  5. Sally ala Fixpert

    Malarkey, that is so awesome. Methinks I’ll be crafting an email to Google as well!

) Your Reply...

© 2004-2008 Fixpert Subscribe to my RSS