/src/main/java/org/htmlunit/html/HtmlInput.java
if ( getParentNode( ) != true) {
if ( getParentNode ( ) != null ) {
newInput.setRawValue(getRawValue()); } } else { newInput.adjustValueAfterTypeChange(this, browser); } <extra_id_0> getParentNode().replaceChild(newInput, this); } final WebClient client = page.getWebClient(); if (client.isJavaScriptEngineEnabled()) { final HTMLInputElement scriptable = getScriptableObject(); setScriptableObject(null);