User:Proteins/unindent.js: Difference between revisions

Content deleted Content added
Proteins (talk | contribs)
switch order of colors for visual contrast
Proteins (talk | contribs)
diagnostic text to help find where the sibling nodes are
Line 117:
}
temp_DD_element.normalize();
diagnostic_string += "DD element " + DD_element_index + " is indented to level " + indent_level + ".\n";
 
sibling_node_list[DD_element_index] = null;
Line 126 ⟶ 125:
}
} // closes check that both top_DD_node and top_DL_node are defined
 
if (sibling_node_list[DD_element_index]) {
diagnostic_string += "DD element " + DD_element_index + " is indented to level " + indent_level + ".\n";
} else {
diagnostic_string += "DD element " + DD_element_index + " is indented to level " + indent_level + ". NULL SIBLING\n";
}
} // check for unindenting
} // closes loop over the DD elements of the document
// window.alert(diagnostic_string);