Loading
Loading....

How to Turn Flash Embed Code into Valid XHTML

I am very strict when it comes to standards compliance. I make sure that all the code and markup I write for the websites I work on comply with the standards of the Internet. So, while working on WicketPixie yesterday I checked to see if it was XHTML 1.0 and CSS 3.0 compliant.

It wasn’t.

So, I read through the list of complaints given by the validators (HTML validator and CSS validator) and got to working on the problems they found. Most of them are now fixed in version 1.1.3 of WicketPixie. Getting back on topic, one of the issues was with the Ustream and Youtube embed codes. Apparently, today’s video sites do not like to be standards compliant with the embed codes they hand out, so it is up to us (the geeky developers) to make sure it is. I Googled around and found one nifty little website that would help me “validify” all the video embed codes. That website is http://www.validifier.com.

All you do is insert in the embed code given to you by sites like YouTube, Ustream, Vimeo, and others, and it spits out some clean, XHTML-valid object code. Another reason to get excited over this is that it supports Internet Explorer! (However, it is no excuse to use it ;-) )

For you Ruby fans, they have a Validifier gem available on GitHub.

What can you learn from this? Well, now you know that if you see a <embed> tag you know it is invalid.

My Videos

Recent Photos