if (container.nodeType == 3 && (start ? offset > 0 : offset < container.nodeValue.length)) {
                    return false;
                }