Not yet compliant

by Volker Weber

I worked a little bit on my templates tonight in order to make the site compliant with the XHTML specification. That is almost done. I do need to work on one item and that is the HTML entity for ampersand. This character is often used in URLs and I don't want to handcode those when linking somewhere else. MT has to do that for me. Once I figured out how I can do that, I will fix the archive templates as well and regenerate the site.

Comments

Try the Validable plugin.

From the description:

- Convert all & in the text to & (unless they are &something;)
- Convert all &, " and ' in tag attribute values to the corresponding entities

But there is more:

What it does
This plugin corrects many of the most common 'invalid' constructs by applying the following changes:
- Convert all tag names to lowercase
- Use double quotes for all tag attribute values
- Attributes without a value (i.e. DEFER or ISMAP) are assigned their own name as default value.
- Close IMG, BR and HR tags using shorthand ()
- Adds an empty ALT attribute to images without an ALT.
- Remove MT's automatic <P> when they enclose a block element like BLOCKQUOTE, PRE, H{x} or even another P.
- Remove MT's automatic <BR> just after those block elements
- plus the above ampersand stuff

I haven't tried out this plugin yet, but will very soon.

For more MT plugins, check the MT Plugins Directory

Sounded interesting, so I just tried it out. FYI - perhaps not surprisingly, it didn't seem to coexist with John Gruber's SmartyPants (http://daringfireball.net/2003/02/smartypants_11.html) - at least, I didn't spend very long investigating it, but the first try resulted in all the various quote symbols getting displayed as &xxxx; on my blog.

Could well be that I did something silly and I will probably try again over Easter...

Post a comment











Shall I remember this for you?




Use your full name and a working email address. Unless you want your comment to be removed. No kidding.



Recent comments

sunny gerscky on Pwnage 2.0 released at 16:00
Tobias Lange on Remember, it's always the cable at 13:16
Volker Weber on Remember, it's always the cable at 12:21
Ian White on Remember, it's always the cable at 11:56
Andy Brunner on Remember, it's always the cable at 11:37
Ben Rose on Remember, it's always the cable at 11:33
Ben Poole on It has only been less than two hours at 09:44
Frank L. Quednau on It has only been less than two hours at 09:29
Martin Hiegl on It has only been less than two hours at 08:27
Stephan H. Wissel on Notes.ini parameter RunFaster=1 is finally here at 05:24
Volker Weber on It has only been less than two hours at 01:33
Thomas "Duffbert" Duff on It has only been less than two hours at 01:26
Chris Linfoot on Planet Lotus not picking up Christopher's feed at 21:56
Yancy Lent on Planet Lotus not picking up Christopher's feed at 19:48
Bruce Elgort on Robin Bloor: Why Google Chrome Will Dominate at 18:51
Mac Guidera on Planet Lotus not picking up Christopher's feed at 16:04
Kevan Emmott on 824 Chrome users so far today at 15:56
Chris Linfoot on Planet Lotus not picking up Christopher's feed at 14:54
Lars Berntrop-Bos on Planet Lotus not picking up Christopher's feed at 13:12
Andreas Braukmann on 824 Chrome users so far today at 11:33
Nick Daisley on Robin Bloor: Why Google Chrome Will Dominate at 10:14
Chris Linfoot on Planet Lotus not picking up Christopher's feed at 09:42
Alper Iseri on 824 Chrome users so far today at 09:38
Jean Pierre Wenzel on 824 Chrome users so far today at 08:37
Jan-Piet Mens on Robin Bloor: Why Google Chrome Will Dominate at 08:26

Ceci n'est pas un blog

vowe.net is a personal website published by Volker Weber a.k.a. vowe. I am an author, consultant and systems architect based in Darmstadt, Germany.

rss Click here to subscribe

Hello

About me
Contact
Publications
Certificates
Frequently asked questions

Twitter Updates

More >

Poll

Can you bring a camera phone to work?

Getting poll results. Please wait...

Local time is 16:43

visitors.gif
182 visitors online

News

Other sources of news, imported into my own format to make them more accessible:

Heise Online
Schlagzeilen
Weather

Archives

As most of my articles roll off the front page rather quickly, I am making an archive of previous posts available here. You can also use the handy search box at the top of the page if you are looking for something particular.

Last 30 days
More archives

Got the T-shirt?

Got the T-shirt?
Are you buying from the US?

Systems Architecture

This site runs on an Apache web server on top of the Linux operating system. The content is managed with MovableType which is implemented in Perl. Last but not least the HTML code your browser sees is put together with PHP.

© 1992-2008 Volker Weber.
All Rights Reserved.

Impressum