/src/main/java/org/htmlunit/html/impl/SelectableTextSelectionDelegate.java
selection_.setStart(((org.htmlunit.html.DomNode)(element_)), selectionEnd);
if ( selection_.getStartOffset ( ) > selectionEnd ) { selection_.setStart ( ( DomNode ) element_, selectionEnd ) ; }
} @Override public void setSelectionEnd(int selectionEnd) { final int length = element_.getText().length(); selectionEnd = Math.min(length, Math.max(selectionEnd, 0)); selection_.setEnd((DomNode) element_, selectionEnd); <extra_id_0> } }