PDA

View Full Version : Are bulletin boards intrinsically not xhtml compliant?


Robink
12-15-2004, 06:52 PM
Even though all my vb3 templates are xhtml compliant, when I validate threads, the validator will inevitably give me a "Not compliant" result.

And the reason for this is, that users who post on the forums tend to use non-SGML characters like the euro sign(?), or Quotes like this: ?, ?, ?.

And since they can use vbCode, they often write code like:hello

Since a bulletin board must have some part of its pages entered by users, and you cant expect all the users to write correct well nested tags.. my pages are always non xhtml compliant.

Is there a solution to this?
Or due to the very nature of a bulletin board (contribution of user-written content), can it never be xhtml compliant?

sabret00the
12-18-2004, 01:41 PM
it can never be compliant unless you want to go mad with the resources of your server and check every message being inputted into teh database replacing all non xhtml compliancy with compliancy i.e

find: "
replace with: &quote;

as you can see this is where XHTML becomes stupid, and thus imo xhtml compliancy is heavily overrated.

Robink
12-19-2004, 06:17 PM
For forums, I think xhtml compliance seems unnecessary.. due to such issues.

But I do make all my personal pages xhtml compliant.

Dean C
12-19-2004, 06:58 PM
Well you could strip all non-alphanumeric characters from the posting text except the brackets for bbcode and the = sign.

filburt1
12-19-2004, 07:31 PM
It's hardly difficult. Most of my forum pages are XHTML 1.0 Transitional compliant and vBulletin itself is too, I believe. You just have to have standards in mind when developing. " to " and such has been around far longer than XHTML.

Robink
12-21-2004, 02:26 PM
Filburt, I'm talking about user inputted data. I cant tell my users to type """ when they want to have quotes.

Natch
12-22-2004, 10:43 AM
But you are running on a vB powered server, this give your certain advantages (like PHP, and some excellent functions built into vB) over plain vanilla text input: you can post-process the content to modify standalone " and replace them with " etc... if you need to...

Robink
12-24-2004, 02:24 PM
Probably I can handle non-SGML characters that way. How do I take care of users using tags in the wrong order?