Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm getting the following validation errors for XHTML:
Validation Output: 2 Errors
1. Error Line 96, Column 80: document type does not allow element "ul" here; assuming missing "li" start-tag.
…k"> <ul class="menu"><ul class="menu"><li class="leaf first active-trail"><a
✉
2. Error Line 107, Column 9: end tag for "li" omitted, but OMITTAG NO was specified.
</ul></ul> </div>
✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
And these errors for CSS:
263 .blk-outline2 Parse Error ;, color: #FB9E9E;
263 .blk-outline2 Parse error - Unrecognized }
Otherwise, great theme! I love it.
Comments
Comment #1
B.P.B CreditAttribution: B.P.B commentedI think the error is due to
being printed twice. I never modified the menu area of page.tpl.php. Please help.
Comment #2
peterx CreditAttribution: peterx commentedThe following line is the culprit. See the explanation and demo at http://d-theme.com/litejazz.
<div id="primary" class="clear-block"> <?php print theme('menu_tree', menu_tree('primary-links')); ?> </div>
Replace with:
<div id="primary" class="clear-block"> <?php print menu_tree('primary-links'); ?> </div>
Comment #3
peterx CreditAttribution: peterx commentedThe following line needs changing from span to div. http://d-theme.com/litejazz explains the error and demonstrates the result of the change.
<span class="taxonomy"><?php print $terms?></span>
Change to:
<div class="taxonomy"><?php print $terms?></div>
Comment #4
peterx CreditAttribution: peterx commentedThe following line generates illegal whitespace. http://d-theme.com/litejazz explains the error and demonstrates the result of the change.
<div id="navigation" class="menu <?php if ($primary_links) { print "withprimary"; } if ($secondary_links) { print " withsecondary"; } ?> ">
Replace with:
<div id="navigation" class="menu<?php if ($primary_links) { print " withprimary"; } if ($secondary_links) { print " withsecondary"; } ?>">
There are also inline styles without a default style sheet language specified. I added changes for that and zipped the results. The zip file is on the demo page. This theme with the changes in the zip file let the page validate to WCAG AA.
Comment #5
Kisugi Ai CreditAttribution: Kisugi Ai commentedclosed -- issue fixed for 2 weeks with no activity.