YUI menu creates invalid markup on pages which already use YUI Grids CSS
bangpound - May 14, 2008 - 14:51
| Project: | YUI Menu |
| Version: | 5.x-2.4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Description
I just noticed that the function get_html_menu_markup is outputting two crucial YUI Grids element IDs that are part of my page already because I use YUI Grids.
<div id="yui-main">
<div class="yui-b">
<div id="productsandservices" class="yuimenubar yuimenubarnav">
<div class="bd">#yui-main and #bd are part of a YUI Grids layout, and I'm already using those IDs. This means all of my pages are always invalid.
What is "productsandservices?"
Shouldn't this function be themeable?

#1
Ok. I misrepresented the problem a bit. There's a class 'bd' not id 'bd.' However, the use of #yui-main is enough to break a page.
I can probably get a patch together. It looks like the code here was lifted directly from the YUI examples, which explains the "productsandservices."
#2