Google AdSense != Valid Code
December 29th, 2005
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?
December 29th, 2005 at 5:46 pm
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.
December 29th, 2005 at 7:00 pm
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!
December 30th, 2005 at 1:45 am
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…
December 30th, 2005 at 5:58 am
I was once :)
http://www.stuffandnonsense.co.uk/archives/dear_mr_google.html
December 30th, 2005 at 5:40 pm
Malarkey, that is so awesome. Methinks I’ll be crafting an email to Google as well!