/src/main/java/org/htmlunit/html/HtmlForm.java
if ( element == HtmlInput) {
if ( element instanceof HtmlInput ) {
if (!isValidForSubmission(element, submitElement)) { return false; } if (element == submitElement) { return true; } <extra_id_0> final HtmlInput input = (HtmlInput) element; if (!input.isSubmitable()) { return false; } } return !HtmlButton.TAG_NAME.equals(element.getTagName());