Minimal

stressed for motivation and achievement

2006-08-28

 

XHTML: waste of time?

I like it when people openly challenge dogma, so I found Emil Stenström’s article on Why XHTML is a bad idea to be a great read. I’ve used XHTML on my websites for a while now, moving to the strict version sometime last year, I think. As a programmer, the cleanliness of an XML-based markup language appealed to me and I was happy to go with the flow of the web community. I also liked the fact that various presentational tags (bold, italic, etc.) weren’t supported, discouraging me from including style code in the markup.

One thing that’s always bugged me, however, is the ease with which the site can fail to validate. Whether it’s through my own clumsiness (not converting ampersands in hyperlinks is a classic mistake) or through the comments others make on my posts, I find new errors nearly every time I use the validator (infrequently, btw). Recently, when I made the Afterbang templates for Gav, I made them XHTML too. I’ve regretted that ever since and keep meaning to switch the site back to plain old HTML. Gav’s no chump, but it’s still a bit much for me to expect him to adhere to XHTML’s restrictions when I keep forgetting them myself. For me, that’s the clincher. I can’t expect everyone who wants to contribute to one of my sites to be as pedantic as me.

Beyond all of that, however, Emil’s article has highlighted an issue that should’ve rung alarm bells in my head a long time ago. If my pages frequently aren’t validating, why is the browser displaying them at all? Why isn’t it freaking out in the way it does for duff .XML files? The answer, it seems, is that it’s not even parsing them as XML. And if that’s the case, why the hell am I using XHTML? I guess I was just following the herd after all. Still, at least I know now. :-/


Comments: Post a Comment



<< Home

Archives

April 2002   May 2002   June 2002   July 2002   August 2002   September 2002   October 2002   November 2002   December 2002   January 2003   February 2003   March 2003   April 2003   May 2003   June 2003   July 2003   August 2003   September 2003   October 2003   November 2003   December 2003   January 2004   February 2004   March 2004   May 2004   June 2004   July 2004   August 2004   September 2004   October 2004   November 2004   December 2004   January 2005   February 2005   March 2005   April 2005   May 2005   June 2005   July 2005   August 2005   September 2005   October 2005   November 2005   December 2005   January 2006   February 2006   March 2006   April 2006   May 2006   June 2006   July 2006   August 2006   September 2006   October 2006   November 2006   December 2006   January 2007   February 2007  

This page is powered by Blogger. Isn't yours?