Validation and Content Management Systems
I, personally, feel that validation is the goal to be achieved in every site. Mainly because it helps reduce errors. Errors are a vicious problem that can rear its quirky head when you least suspect. Whether you validate to HTML 3.2, HTML 4.01, or XHTML1.0, it doesn't really matter.
For us technical types, maintaining a valid site is usually fairly easy. Sure, we may miss a page or two due to laziness but if we see that something doesn't work, we have the know-how to fix it.
But what of users who use some type of Content Management System? You're suddenly at the whim of the developers of such a tool.
ANY tool that generates final content for you has the potential to get it wrong.
This realization became a problem for myself just today when I did a quick validation test on one of my pages and it failed. It turns out the target attribute on an
<a> tag is invalid in XHTML 1.0 Strict. What makes this odd is that I don't normally set target attributes on my links.
I use MovableType 3.1 and, at this stage, I hopped into the templates to see what was wrong. Hmmm, interesting. It seems that MovableType doesn't give me the choice of how a comment author link gets generated.
I had to do some digging in the code to find where it generated the link (It's in lib/MT/Template/Context.pm, in case you're interested) and made the necessary change and rebuilt my site.
CMS developers these days (and this will include me) will have to come to the realization that their tools mustn't make assumptions on code output. What with the different HTML standards and syndication formats such as RSS and Atom, there's no way to predict every variation.