Loading ...
Sorry, an error occurred while loading the content.

v2.2.2 menu::_initSubTree() issue?

Expand Messages
  • digeomel
    Hello, I was converting a menu made from markup to a dynamic one, and came across this. My menu looked something like this:
    Message 1 of 1 , May 9, 2007
    View Source
    • 0 Attachment
      Hello,

      I was converting a menu made from markup to a dynamic one, and came across this.

      My menu looked something like this:

      <div id="mymenu" class="yuimenu">
          <div class="hastitle">Actions</div>
          <div class="bd">
              <ul>
                  <li class="yuimenuitem">menu item 1</li>
                  <li class="yuimenuitem">menu item 2</li>
                  ...
              </ul>
          </div>
      </div>


      And was reduced to this:

      <div id="mymenu" class="yuimenu">
          <div class="hastitle">Actions</div>
          <div class="bd">
          </div>
      </div>


      so that I could put the menu items in javascript.
      This is working fine in Firefox, but it fails in IE (6 & 7), apparently somewhere in _initSubTree().

      I had to replace it with this to make it work:

      <div id="mymenu" class="yuimenu">
          <div class="hastitle">Actions</div>
          <div class="bd">
              <ul>
                  <li class="yuimenuitem">&nbsp;</li>
              </ul>
          </div>
      </div>

      I am not sure this is a bug, maybe I'm doing something wrong here?
    Your message has been successfully submitted and would be delivered to recipients shortly.