If you are linking to a page that requires an "&" in the url Nice menus causes the xhtml to be invalid.
When rendering a menu item Nice Menus does not convert the & in the class attribute to &
This causes the page to be invalid xhtml
The Drupal menu module does this correctly, because it uses the same class for every menu item "leaf"
To duplicate simply add a menu item to two different menus (one Nice_menu, one normal) Enable both menus onto one page and look at the source.
I don't know if converting the "&" to "&" would solve the problem, or if the class attribute could just stop if it finds an "&"
I believe that an easy fix could be put around line 210 when the class is created:
$path_class = 'menu-path-'. str_replace('/', '-', $menu['items'][$mid]['path']);
I did an ugly fix on my site:
$first_pass = str_replace('&', '&', $menu['items'][$mid]['path']);
$path_class = 'menu-path-'. str_replace('/', '-', $first_pass);
Comments
Comment #1
add1sun commentedDuplicate of http://drupal.org/node/100914.