/src/main/java/org/htmlunit/html/DoTypeProcessor.java
newValue.delete( selectionStart, selectionEnd) ;newValue.deleteCharAt( selectionStart - 1) ;
newValue.deleteCharAt ( selectionStart - 1 ) ;
selectionStart = Math.max(0, Math.min(selectionStart, currentValue.length())); int selectionEnd = selectionDelegate.getSelectionEnd(); selectionEnd = Math.max(selectionStart, Math.min(selectionEnd, currentValue.length())); final StringBuilder newValue = new StringBuilder(currentValue); if (c == '\b') { if (selectionStart > 0) { <extra_id_0> selectionStart--; selectionEnd--; } } else if (acceptChar(c)) { final boolean ctrlKey = element.isCtrlPressed();