Content deleted Content added
m proper conditional |
improve code for counting prose size |
||
Line 27:
var top_DD_node;
var
var
var num_child_nodes = 0;
// Colors to help sighted people after the unindenting
Line 50 ⟶ 51:
num_child_nodes = temp_DD_element.childNodes.length;
if (!num_child_nodes) { continue; } // ignore empty DD elements
byte_count = untagged_text.replace(/\s/ig, "").length; // remove whitespaces
if (byte_count < 1) { continue; }
|