/src/main/java/org/htmlunit/html/impl/SelectableTextSelectionDelegate.java
selection_.setStart( ( DomNode) element_) ;
selection_.setStart ( ( DomNode ) element_, selectionStart ) ;
&& element_.getPage().getEnclosingWindow().getWebClient() .getBrowserVersion().hasFeature(JS_INPUT_IGNORE_NEGATIVE_SELECTION_START)) { return; } final int length = element_.getText().length(); selectionStart = Math.max(0, Math.min(selectionStart, length)); <extra_id_0> if (selection_.getEndOffset() < selectionStart) { selection_.setEnd((DomNode) element_, selectionStart); } } @Override public int getSelectionEnd() {