Content deleted Content added
add access key for convenience |
new approach to outdenting |
||
Line 26:
var top_DL_node;
var top_DD_node;
var grandparent_node;
var temp_DD_text;
Line 169 ⟶ 170:
} // closes loop climbing up the document tree
if (!top_DL_node) { continue; }
grandparent_node = top_DL_node.parentNode;
if (!grandparent_node) { continue; }
if (indent_level > 0) {
grandparent_node.insertBefore(temp_DD_element, top_DL_node);
}
/*
if (indent_level > 1) {
if ((top_DD_node) && (top_DL_node)) {
Line 181 ⟶ 191:
} // check that both the top_DD and top_DL elements are defined
} // check for unindenting
*/
} // closes loop over the DD elements of the document
// window.alert(diagnostic_string);
|