Empty action attribute – HTML Validation error
-
First of all, great plugin ??
I’m running into a minor HTML validation error because of an empty action attribute in Forminator.
Error: Bad value for attribute action on element form: Must be non-empty.
The HTML5 specs state that the action “must have a value that is a valid non-empty URL”.
This topic from last year briefly mentiones this validation error – among others – and says it will be addressed in future releases.
I was wondering if there is any update on this?
Thanks in advance
———
PS. I found that adding an # to the action attribute on line 445 of \forminator\library\render\class-render-form.php fixes the validation error, without breaking the functionality (as far as I could tell)
<form id="forminator-module-%s" class="forminator-%s forminator-%s-%s" action="#" method="post" data-forminator-render="%s">,
- The topic ‘Empty action attribute – HTML Validation error’ is closed to new replies.