function prevIgnoringHighlights(node) {
            do {
                node = node.previousSibling;
            } while (node && node.className === HIGHLIGHT_CLASSNAME);
            return node;
        }
@private
Replace a range of text and comment nodes with an optional new text node
@param {Element} targetElement
@param {Object} edit