The secondary tabs are outputting invalid HTML as can be seen in this screenshot:
secondary tabs

This is caused by the page template, specifically this part:

<?php if ($secondary_local_tasks): ?>
    <div class="tabs-secondary clearfix"><ul class="tabs secondary"><?php print render($secondary_local_tasks); ?></ul></div>
  <?php endif; ?>

When rendered the $secondary_local_tasks already creates a UL and is also being wrapped in a UL causing a UL element and an H2 element to be direct children of another UL which is invalid HTML.

Attached is a patch that remedies this.

Comments

kyoder created an issue. See original summary.

shyam_bhatt’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new172.62 KB
new173.68 KB

I have checked the patch for the D7 site working fine. The HTML structure is updated for the "secondary tab" listing. Check the below images:

Before:
2022-09-16/3274261-2-before.png

After:
2022-09-16/3274261-2-after.png