View Single Post
Old October 1st, 2007, 05:59 PM   #1 (permalink)
oldengine
Member
Verified Customer
 
Join Date: Oct 2004
Location: Florida
Posts: 318
W3C Markup Validation Service

Maybe I'm beating my head on the wall with this, (or I just get into deep do-do too often) but I try to run all my web pages through the W3C validator and correct their html as needed to comply.

I have just run into a problem that might be overwhelming, at least to me. The problem here is that each element should close in the order that you open them. If a user puts both BOLD and ITALIC in an ad, you get a mixup.

From: showcat.tmpl

<span><b><i> text_here </span> <span> more_text </b></i></span>

Which should be:

<span><b><i> text_here </i></b></span> <span><b><i> more_text </i></b></span>

Since {$gallery['tagopen'][$x]} contains <b><i>
and {$gallery['tagclose'][$x]} contains </b></i>
instead of {$gallery['tagclose'][$x]} containing </i></b>
this order will never be correct.

If this is an easy correction, it's a HOW TO. If not, it's a suggestion.

Code:
Content visible to verified customers only.
http://validator.w3.org/check?uri=referer
oldengine is offline   Reply With Quote