+ if (last_li) {
+ var nul = doc.createElement('ul'); // what about number lists...
+ last_li.appendChild(nul);
+ stack[nlvl] = nul;
+ } else {
+ // occurs when we get a level (1) but no parent - just put all the children on the top most..
+ stack[nlvl] = stack[stack.length-1];
+ }
+