Menu

#45 Empty <ul> elements cause validation problem

1.0.3
closed-fixed
Kernel (41)
5
2005-08-17
2005-08-16
biolizard89
No

There is a bug which causes an empty <ul> element to
appear (with no <li> elements as children) in the drop-
down menu which links to the home page, which
prevents the page from validating.

To fix it, enclose the <ul> element in menu_global.tpl
with the following:

{if $gBitSystem->isFeatureActive( 'feature_contact' ) or
$gBitUser->isRegistered()}

<!-- <ul> goes here -->

{/if}

In other words, just make sure that the <ul> element
only is used when at least one of the <li> elements is
used.

Also, this technique should be applied to all the drop-
down menus in the top menu, since they can have this
problem as well.

I hope this bug can be fixed soon.

Discussion

  • Anonymous

    Anonymous - 2005-08-17
    • status: open --> closed
     
  • Anonymous

    Anonymous - 2005-08-17
    • assigned_to: nobody --> squareing
    • status: closed --> closed-fixed
     
  • Anonymous

    Anonymous - 2005-08-17

    Logged In: YES
    user_id=982006

    this is already fixed in CVS.

    since you are so strict about XHTML compliancy, it would be awesome to have
    you on our team, if you are interested? if you feel like helping out a bit, you
    could drop by IRC and have a chat with us (irc.freenode.net/#bitweaver)

    my nick on IRC is xing.

     

Log in to post a comment.