Ul and ol can only have li elements as children. And what you're doing seems to be trying to insert one list inside another as a list item, so why not put that nested list inside a new list item (owned by the containing list, containing the nested list)?
(That's the way most people make those CSS drop-down hierarchical menus, too.)
In reply to Re^5: Directory Tree Structure
by Anonymous Monk
in thread Directory Tree Structure
by rupesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |