I am developing a theme for Drupal 7 and I am struck up with the following issue. I can see there are fixes through jQuery. But I would like to do it in the Drupal way.
My current HTML
<ul class="menu sf-js-enabled">
<li class="first leaf">
<a href="/" class="active">Home</a></li>
<li class="last expanded">
<a href="/node/57">About Us</a>
<ul class="menu sf-js-enabled" style="display: none; visibility: hidden;">
<li class="first leaf"><a href="/node/69">Contact Us</a></li>
<li class="last leaf"><a href="/node/73">Typhygraphy</a></li>
</ul>
</li>
And I want something like this
<ul class="menu sf-js-enabled">
<li class="first leaf active">
<a href="/" class="active">Home</a></li>
<li class="last expanded">
<a href="/node/57">About Us</a>
<ul class="menu sf-js-enabled" style="display: none; visibility: hidden;">
<li class="first leaf"><a href="/node/69">Contact Us</a></li>
<li class="last leaf"><a href="/node/73">Typhygraphy</a></li>
</ul>
</li>
The "active" class needs to be there in the <li>
also.