Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pros and Cons of declaring xHTML strict, but not validating?
Hi,
This might be slightly off topic, but I have a question that has come up on a recent project.
What are the pros and cons of setting up a site with a xHTML 1.0 strict declaration in each page, knowing that it will not pass the W3C validation tests?
I know that some people choose to declare xHTML strict without correctly encoding ampersands. Does this have any detrimental effect on how the site is displayed in browsers?
www.cheezepie.com
Offline
Re: Pros and Cons of declaring xHTML strict, but not validating?
It might well display correctly in all browsers, but then again it may not, so for the sake of a few minutes search and replace, why not do it right? Don’t you like the good feeling when the W3C red turns to green;-)
Is txp producing the incorrect ampersands?
Offline
Re: Pros and Cons of declaring xHTML strict, but not validating?
Unescaped ampersands are illegal in all versions of HTML and XHTML, Strict or not, and can potentially cause problems with rendering, depending on where they occur. Fix them.
You cooin’ with my bird?
Offline
Re: Pros and Cons of declaring xHTML strict, but not validating?
It just isn’t that hard anymore to do things the right way – plus you get the added bonus of feeling all warm and fuzzy inside at the accomplishment.
Offline
Re: Pros and Cons of declaring xHTML strict, but not validating?
Hi all,
Thanks for the feedback.
Don’t panic, my textpattern is encoding ampersands properly. I was asking in a theoretical sense. I was just interested in what would happen?
I’m finding more and more that third party content is becoming standards compliant, but there are still some content providers (mainly advertising agencies) that don’t provide compliant code, and don’t provide any way of editing it.
I was just wondering what the practical implications would be, in theory, of not validating (not just failing on ampersand issues).
www.cheezepie.com
Offline
Re: Pros and Cons of declaring xHTML strict, but not validating?
It depends on “how strict/properly” you’re going to do it. Here is an interesting article in that context:
http://www.456bereastreet.com/archive/200501/the_perils_of_using_xhtml_properly/
Offline
Re: Pros and Cons of declaring xHTML strict, but not validating?
And here is the argument for those who just don’t play well with others:
Last edited by michaelkpate (2005-11-10 17:16:00)
Offline