Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-08 16:02:30

cheezepie
New Member
From: London UK
Registered: 2004-06-20
Posts: 4
Website

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

#2 2005-11-08 19:48:37

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

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?


BB6 Band My band
Gud One My blog

Offline

#3 2005-11-08 21:59:50

ubernostrum
Member
From: Lawrence, KS
Registered: 2004-05-05
Posts: 238
Website

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

#4 2005-11-09 04:16:30

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

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

#5 2005-11-09 09:51:51

cheezepie
New Member
From: London UK
Registered: 2004-06-20
Posts: 4
Website

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

#6 2005-11-09 10:20:47

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

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

#7 2005-11-10 17:14:44

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

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:

March to Your Own Standard

Last edited by michaelkpate (2005-11-10 17:16:00)

Offline

Board footer

Powered by FluxBB