[A11y] Form JavaScript: Support for <button formnovalidate>

This commit is contained in:
Raphael Michel
2026-09-08 22:18:27 +02:00
parent edb4069e18
commit a0cb31249b
@@ -234,6 +234,7 @@ var form_handlers = function (el) {
function setup_basics(el) {
el.find("form").attr("novalidate", true).on("submit", function (e) {
if (e.originalEvent.submitter.formNoValidate) return;
if (!this.checkValidity()) {
var input = this.querySelector(":invalid:not(fieldset)");
(input.labels[0] || input).scrollIntoView();