Closed (fixed)
Project:
Framework
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2010 at 00:34 UTC
Updated:
4 Mar 2011 at 06:11 UTC
Appears the $tabs output by Drupal already creates an unordered list for the tabs. So by adding in the extra <ul class="tabs primary"> and </ul> as is done in the wrapper like below causes failed validation.
<?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block"><ul class="tabs primary">'. $tabs .'</ul>'; endif; ?>
<?php if ($tabs): print '<span class="clear"></span></div>'; endif; ?>
OUTPUTS SOMETHING LIKE:
<ul class="tabs primary">
<ul class="tabs primary">
<li>Tab</li>
<li>Tab</li>
</ul>
</u>
After I removed the extra HTML shown below then all validated good.
<?php if ($tabs):
print '<div id="tabs-wrapper" class="clear-block">'. $tabs;
endif; ?>
<?php if ($tabs): print '<span class="clear"></span></div>'; endif; ?>
Comments
Comment #1
andregriffin commentedFixed in Framework 3.