User:Proteins/unindent.js: Difference between revisions

Content deleted Content added
Proteins (talk | contribs)
diagnostic text to help find where the sibling nodes are
Proteins (talk | contribs)
two small changes
Line 74:
indent_level = 0;
top_DL_node = null;
top_DD_node = nulltemp_DD_element;
parent_node = temp_DD_element.parentNode;
 
Line 169:
} // closes loop climbing up the document tree
 
if (indent_level > 01) {
if ((top_DD_node) && (top_DL_node)) {
// top_DL_node.insertBefore(temp_DD_element, top_DD_element);