XHTML Valid YouTube posts

This is more a note to myself than anything else, but it may help others as well.

YouTube videos/links are one of the hottest things going on the web today, but like so many other services, they can’t seem to be bothered to provide XHTML valid links for their “post this” data. For instance YouTube provides this to ’embed’ a video:

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/CxxVwMEURus"></param><embed src="http://www.youtube.com/v/CxxVwMEURus" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

Which does not validate. A valid method to accomplish the exact same feat would look like this:

<object data="http://www.youtube.com/v/CxxVwMEURus" type="application/x-shockwave-flash" width="425" height="350"><param name="movie" value="http://www.youtube.com/v/CxxVwMEURus"></param></object>

Which yields this:

and… validates (I hope)!

PS. The video is funny as hell… I love cats, especially when they’re caught on film doing the crazy things they do all the time when we wish we had a camera trained on them.