<BUG>if (getJSRange() instanceof TextRange) {</BUG><CONTEXT>setEndBefore(refNode);}}public void setStart(Node refNode, int offset){<extra_id_0>if (refNode.getNodeType() == Node.ELEMENT_NODE) {if (offset < refNode.getChildNodes().getLength()) {setStartBefore(refNode.getChildNodes().getItem(offset));</CONTEXT>
if (getJSRange().isTextRange()) {