[SOLVED] Menu bar has duplicate specification of attribute "class"
I'm getting an error when I validate the html. Using 3.5.3 and WP 3.0 and the WP menu system.
On a menu box when the sub-menu indicator arrows appear to show there is a submenu, I get the follow error from the W3 validator: Quote:
|
I get HTML validation errors whether the "fix" is in or out but I also don't care too much about HTML validation. Go to any site and you will find HTML "errors".
|
There is no guarantee that any browser would honor or use the second coded class.
The preg_replaces are incorrect in functions/bfa_new_wp3_menus.php: Old Code: Code:
$newmenu = preg_replace("/<li id=\"(.*?)\n<ul class=\"sub-menu\">/i","<li class=\"rMenu-expand \\1\n <ul class=\"rMenu-ver sub-menu\">",$newmenu); Code:
$newmenu = preg_replace("/<li id=\"(.*)\" class=\"(.*?)\">(.*)\n(.*)<ul class=\"sub-menu\">/i","<li class=\"rMenu-expand \\2\">\\3\n<ul class=\"rMenu-ver sub-menu\">",$newmenu); |
|
Thanks for the link...bugfix worked!
|
All times are GMT -6. The time now is 03:30 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.