function getContent(element) {
        if (element.tagName === "INPUT" && element.type === "text")
            return element.value;
        else
            return element.textContent;
    }
@param {Element} element
@param {WebInspector.EditingConfig=} config