Scott Klarr Jr
Youtube/Adsense player breaking W3C validation
I work hard to make my code W3C valid and cross-browser/cross-platform compliant. With the big push for sites to follow standards, I decided a while back to strip away my old poor coding habits and take the extra steps to make it perfect. In fact I kind of get a rush when I run a W3C validator on a newly coded layout to see no errors.
That being said, I was vary disappointed when I added the youtube/adsense player you see at the bottom of this page only to find out that it breaks the W3C standards. The reason being is that the containing div has an ID set that contains an equal mark in it, which is not allowed to be within the ID attribute of any html object.
If the player does not show any usage stats that make me believe its worth keeping, I will most likely remove it because I am kind of picky about those sorts of things. I do hope Google will fix this issue. Why in the world do they need an equal sign in there anyways?!



Chris Bourton Jul 30, 2008
I've just made a start on updating my site, as you talked about, and had the YouTube Video units already, and found it to be the source of the only error(s) left unfixable.
Taking the = symbol essentially makes the video unit useless.
I can't even use an escape to replicate a = since that ends up using an & and of course thats not allowed either.
Bad form YouTube & Google, I liked those Video Units, but now i'm starting to think I won't bother keeping them.
William Aug 15, 2008
I have started rewriting my website and decided to go with the Adsense Video Units as well. I just found that they don't validate due to the equal sign and can't believe that such big power houses as Google and YouTube we be so stupid. A guy like me has an excuse, but they don't. And you can never get any support from either of them either!!!!!