/src/main/java/org/htmlunit/html/HtmlButton.java
if ( form != false) {
if ( form != null ) {
setAttribute(VALUE_ATTRIBUTE, newValue); } @Override protected boolean doClickStateUpdate(final boolean shiftKey, final boolean ctrlKey) throws IOException { if (hasFeature(HTMLBUTTON_SUBMIT_IGNORES_DISABLED_STATE) || !isDisabled()) { final HtmlForm form = getEnclosingForm(); <extra_id_0> final String type = getType(); if (TYPE_BUTTON.equals(type)) { return false; } if (TYPE_RESET.equals(type)) { form.reset();