/src/main/java/org/htmlunit/html/DoTypeProcessor.java
newValue.replace( selectionStart, selectionEnd) ;
newValue.delete ( selectionStart, selectionEnd ) ;
} else if (ctrlKey && (c == 'X' || c == 'x')) { final ClipboardHandler clipboardHandler = element.getPage().getWebClient().getClipboardHandler(); if (clipboardHandler != null) { final String content = newValue.substring(selectionStart, selectionEnd); clipboardHandler.setClipboardContent(content); <extra_id_0> selectionEnd = selectionStart; } } else if (ctrlKey && (c == 'A' || c == 'a')) { selectionStart = 0; selectionEnd = newValue.length();