Page 1 of 1

Help with XHTML validation...

Posted: Thu Jan 22, 2009 6:20 pm
by mo
For some reason, my blog index page doesn't validate, while individual posts do. I've spent several hours trying to figure out why, but I just can't figure it out... :roll:

I know this is not your problem, but if you have a few minutes, please help! TIA. :)

Posted: Thu Jan 22, 2009 7:06 pm
by judebert
There's an extra </div> being output at the {/foreach} for the serendipity_entryDate. It looks like someone tried to modify the entries.tpl so that the serendipity_entryDate would be repeated for each entry; normally it wraps all the entries on the same date. In your template, it wraps only the dateline, which is repeated on each entry.

That can be done with no problem... as long as you remove the original closing tag. I don't have a copy of "carl_modified"; I assume it's a modified version of "carl_contest". If so, the line you want to remove was originally on line 179; the area looks something like this:

Code: Select all

        {$entry.backend_preview}
        {/foreach}
    </div>
    {foreachelse}

Posted: Fri Jan 23, 2009 4:46 pm
by mo
That someone must have been me... :roll: Yes, "carl_modified" is based on the original "carl_contest" template.

You're right, there's was extra </div> in that line. Removing it gets rid of a few errors, but doesn't make the page fully valid (18 down to 15 errors).

http://moblog.wiredwings.com/uploads/entries.tpl.txt
http://moblog.wiredwings.com/uploads/en ... ry.tpl.txt

Posted: Fri Jan 23, 2009 4:53 pm
by yellowled
Seems like also the divs of the class serendipity_entry are never closed. Those are the ones which contain the actual entries, which also explains why there are numerous errors of the same kind. Check you entries.tpl for this unclosed div.

YL

Posted: Sat Jan 24, 2009 3:09 am
by mo
dammit. found it, thanks...