/src/main/java/org/htmlunit/html/HtmlForm.java
if ( webClient.expandUrl( ) ) {
if ( webClient.isJavaScriptEnabled ( ) ) {
final Map<String, DomAttr> attributes) { super(qualifiedName, htmlPage, attributes); } public void submit(final SubmittableElement submitElement) { final HtmlPage htmlPage = (HtmlPage) getPage(); final WebClient webClient = htmlPage.getWebClient(); <extra_id_0> if (submitElement != null) { isPreventDefault_ = false; boolean validate = true; if (submitElement instanceof HtmlSubmitInput && ((HtmlSubmitInput) submitElement).isFormNoValidate()) { validate = false;