Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1904 XHTML Issue: Block Lists Contain <div> in <a>

v4.1.3
open
nobody
None
2
2008-11-17
2008-02-14
KosherJava
No

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="......

Discussion

  • Greg Roach
    Greg Roach
    2008-02-14

    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

     
  • Greg Roach
    Greg Roach
    2008-11-17

    • milestone: --> v4.1.3