Content deleted Content added
comment out more diagnostic text |
problem comes when order of indentation is reversed |
||
Line 34:
var num_child_nodes = 0;
var num_sub_DL_elements = 0;
var sibling_node;
var sibling_node_list = new Array();
// Colors to help sighted people after the unindenting
Line 115 ⟶ 118:
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;
if ((top_DD_node) && (top_DL_node)) {
while ((sibling_node) && (sibling_node.nodeType != 1)) { ▼
sibling_node = sibling_node.nextSibling;
}▼
} // closes check that both top_DD_node and top_DL_node are defined
} // check for unindenting
} // closes loop over the DD elements of the document
Line 157 ⟶ 168:
// top_DL_node.insertBefore(temp_DD_element, top_DD_element);
sibling_node =
▲ while ((sibling_node) && (sibling_node.nodeType != 1)) {
▲ sibling_node = sibling_node.nextSibling;
▲ }
if (sibling_node) {
top_DL_node.insertBefore(temp_DD_element, sibling_code);
|