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