.. title: Documenting some absurdity. .. slug: validation .. date: 2008-10-16 13:20:27 .. tags: tech .. link: .. description: I realized I had never checked this page for validation, so I did. It didn't come close. Mostly this is because I'm lazy and mistype HTML and occasionally fail at regexps when doing search-and-replace, but even after fixing those the Youtube and Braek embeds were gratuitously invalid. After googling I found `this method `_ which isn't too bad, except no way was I going to do all that just to embed a stupid youtube video. Happilly I use blosxom which is delightfully modifiable and the fancyquotes extension which I've extended a bit to include this clause: :: } elsif ($block =~ /embed.break.com\\/\\w{8}/i \|\| $block =~ /youtube\\.com\\/v\\/([^&]+)/i ){ $new\_body .= ' Get Adobe Flash player '; Obviously I've added the appropriate js to the lib directory and added a header value for it, but it wasn't all that difficult actually. Right now it uses an id tagged with the filename of the source file but I really should add a sequential tag so there can be more than one embed per post. If only I could care.