MD Enterprises Softcorp introduces:

The Valificator

I'm in ur Valid XHTML 1.1 valificating ur snippitz!

Last edited: 13:49:57 04-04-2010


One day I woke up and decided that it's just not fair. Why should I go trough so much trouble just to make valid XHTML 1.1? Large companies like Youtube and Google don't even take the trouble to provide valid snippits for their embedded code, I'll have to rewrite them every single time.

That's why I wrote the valificator. It converts Youtube and Google embed snippits to valid XHTML 1.1.

Valificate your snippet

snippet type
snippet

OK, pop your eyes back in after being exposed to this splendor. I can still hear some of you thinking "That's all nice and all, but where do I get these stupid snippets in the first place?". Well, that depends:

  • Youtube: go to a Youtube movie, and scroll down to "embed". Then copy the code in the input field following the word Embed. Now paste in in the snippet area up here.
  • Google Video: go to a Google video. Press the "e-mail - embed HTML" button. Press "embed HTML". Copy and paste the snippet into the area up here.
  • Picasa Web Album Slideshow (Google): go to a Picasa Web Album. Click the link Embed Slideshow. Copy and paste the snippet listed under "Embed Slideshow" into the area up here.
  • Google Maps: go to a Google map. Click "link to this page". Copy the snippet from the "paste HTML into website" field. Paste it into the area up here.

Notes:

  • Youtube: I've read that the way I convert youtube snippets may result in a problem loading if you view the movie from Internet Explorer. I wouldn't know though, because I don't use IE. So, no guarantees there.
  • Google Maps: The valid snippet doesn't appear to work at all in IE. In firefox it works just fine. The reason appears to be that Internet Explorer considers an object-tag that loads an external url (i.e. starting with http://) as possibly harmful, and therefore doesn't load it. It does load local/relative paths into an object-tag. If anyone has a clue how to fix this, you can reach me through the contact button on the top of this page. For now, I just work around it by displaying a link instead of the map when the user agent is IE.

Source

This is open source, distributed under GPL.
The source:

Last updated: 13:49:57 04-04-2010

Thanks to