This function checks to see if a certain element can accept text or input which includes the well known input elements of type text, email or password but also includes a check to see if the element is not an input element but has a contentEditable === "true". In other words, if the element can accept user input of any kind.