Hey all. I'm relatively new to Drupal in the past six months and overall I love it. In general, the Drupal sites I've developed are relatively easy to maintain and the community built around the CMS is responsive and helpful.
However, there is one thing that keeps on tripping me up: there is all sorts of additional markup that is generated that is just plain unnecessary for the display and styling of pages. I'd like to explore the feasibility of reducing some of the markup that is output in future versions of Drupal (probably beginning with v7 since v6's core code was just frozen, right?).
Here's an example of what I'm talking about. The primary links on one of my sites:
<ul class="links primary-links">
<li class="first menu-1-1-2"><a href="favorites" class="menu-1-1-2">My Favorites</a></li>
<li class="menu-1-2-2"><a href="product" class="menu-1-2-2">Store</a></li>
<li class="menu-1-3-2"><a href="forum" class="menu-1-3-2">Message Board</a></li>
<li class="last menu-1-4-2"><a href="categories/all" class="menu-1-4-2">Browse Categories</a></li>
</ul>
There's no reason to repeat the class on the li's and the descendant a's since you can style descendant selectors via css. That is, if you wanted to style the first link based on its class, you could just use the following css markup
li.menu-1-1-2 a {
/*whatever my style is*/
}