php forum
php mysql forum
php mysql smarty
 
Topic Options
#281042 - 10/21/04 09:37 AM xhtml compliance
krow Offline
Lurker

Registered: 01/03/04
Posts: 9

   xhtml compliance to Del.icio.us Add to del.icio.us
  Digg xhtml compliance Digg it
In my self given task to make at least some UBB-templates correct xhtml I came across some errors that would be really easy to fix in ubb and would reduce the number of errors you have in UBB massively. Here is the top 3:<br /><br />1. image tag. The img tag has a mandatory attribute alt. Add alt="" or sthg. to the UBB-Code converter. Change all occurences to xhtml (close the tag). <img src="xx" alt=""/> <br /><br />2. Escape &. The '&' character has a special meaning. It marks is the start of an entity. This also applies within attributes. So a link with parameters should be escaped. <br />href="/xxx?bla=1&blu=2" is WRONG. Right way: href="/xxx?bla=1&amp;blu=2". (This even applies to normal HTML)<br /><br />3. Be careful with inline-elements. You are often using the <font> tag which is an inline-element. Inline (i.E. font, span, ...) elements are not allowed to contain block-level-elements. (I.E. table, p, ...) Surrounding a forum posting with an inline-element is not a good idea, since you normally can't be sure what will be inside the posting.<br /><br />I believe the amount of errors will be reduced by about 90% if you fix these.

Top
#281043 - 03/03/05 02:40 PM Re: xhtml compliance [Re: andres]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25411
Loc: Texas
Thanks for the notes, I'll see if I can post something on the beta forum for 6.5.2's code <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Oh, and while there may be an error or 3 here and there' the code really is a great improvement over past versions <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top


Top Posters Last 30 Days
AllenAyres 13
Gizmo 10
willing 2
S7ARBVCK 2
MattUK 1
Kevin H 1
tackaberry 1
Who's Online
1 Registered (Gizmo), 31 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Noob - need help, or a reality check!
by Gizmo
Yesterday at 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks