BillyS - 10:05 pm on Mar 4, 2012 (gmt 0)
One reason that Google sometimes offers code snippets that don't validate is that the kind of validation "problems" that do exist don't really matter very much.
<rant on>This is true and it demonstrates Google's arrogant attitude towards the community of webmasters. It’s the same reason my site downloads in 2.8 seconds instead of 1.8… because of the crappy code Google junks onto the web.
How hard is it for one of the geniuses at Google to give us some good code? No… instead 300,000 webmasters have to figure out how to get around their litter.</rant off>
I feel better now. :)