XHTML Issue: Block Lists Contain <div> in <a>
Brought to you by:
canajun2eh,
yalnifj
In the upcoming/todays events blocks, the listing for families has a block level <div> tag within an inline <a> tag (sample below). This causes the index page to not validate. The error message from the validator at http://validator.w3.org is:
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
------ SAMPLE from View Source ------------
<tr class="vevent"><td class="list_value_wrap" align="left"><a href="family.php?famid=F1" class="list_item name2" dir="ltr">Smith, John<img src="images/small/male.gif" alt="" class="gender_image" /><div class="......
Logged In: YES
user_id=1466942
Originator: NO
This is caused by the "print parents names" code.
This is the block-level code. For the INDI records, this is correctly printed after the INDI name/link. See functions_print_list.php:1458
However, for the FAM record, it is printed after each spouse's name, but *within* the family link. See functions_print_list.php:1434