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
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: 25366
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 83
Gizmo 29
sirdude 24
Zarzal 22
blaaskaak 13
willing 7
swebs 6
Who's Online
2 Registered (blaaskaak, sirdude), 39 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Nice Ajax Chat
by sirdude
07/05/08 04:29 PM
[7.x] UBB.Post Templates v0.1
by sirdude
07/05/08 12:48 PM
Team UBBDev Rides Again!
by AllenAyres
07/04/08 10:56 PM
[7.3.x] ubb.links
by AllenAyres
07/03/08 06:15 PM
Changing currency for subscriptions?
by AllenAyres
07/03/08 01:15 PM
Protect users emails
by AllenAyres
07/03/08 11:36 AM
VPS and Newbies
by Gizmo
07/02/08 09:08 PM
New Mods
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
Newest Members
ryzilla, M4D, Jer, Kanigo2, Bubba
13302 Registered Users

 

 

 
fusionbb message board php hacks