Forum Moderators: phranque
If the DOCTYPE is XHTML, why are you receiving validation errors for valid XHTML tags? I'm confused.
When the DOCTYPE is XHTML it doesnt give me any validation errors but the XHTML tags are not working in my forums.like when I write <hr /> it doesn't draw any horizontal line but simply using <hr> works.
Which version? I'm assuming you are using phpbb2 because the stock templates in phpbb2 use <hr /> and <br /> with a HTML doctype, switching doctypes won't help because other code won't validate as XHTML. Not sure what the reasoning is, I vaguely remember reading something about it once.
I am using PHP Version 4.4.6
Regards,
Anirudh
When the DOCTYPE is XHTML it doesnt give me any validation errors but the XHTML tags are not working in my forums.like when I write <hr /> it doesn't draw any horizontal line but simply using <hr> works.
After reading this several times I might be getting it to some degree. You're saying that if you use XHTML tags in forum posts they don't work? That makes some sense. It's kind of like the [bb] code many forum packages use. The forum's internal systems convert what you post into the final page.
Am I understanding the issue?
I did a test post on my test forum and using <hr> produces a line , usng <hr /> produces a line but the trailing slash is deleted by the forum. If you go to edit the post it has been removed. To change this behavior you would have to edit the php script, you might find something on the phpbb forums for doing this.
Whatever the case direct HTML input (even the limited HTML in phpbb2) is a security risk and should not be used for a public forum, it isn't even an option in phpbb3. Check the modifications forums on phpbb.com, they have BB code mods that will add the <hr> tag.