Each field has the class attribute added twice
-
Hi,
Noticed each form field has the class attribute added twice to it, generating invalid HTML.
<input type="text" class="form-control" id="pirate-forms-contact-name" name="pirate-forms-contact-name" class="" placeholder="Your Name"
From what I can tell, it’s added both in the get_common() function from pirate-forms\includes\class-pirateforms-html.php, as well as inside pirate-forms\public\partials\fields\text.php
Normally this is not a problem, unfortunately, it brakes our own plugin TranslatePress since we need valid HTML or it fails. We have a workaround for it, however it’s not something we can activate by default simply because it can have side effects.
Best Regards,
Cristian
- The topic ‘Each field has the class attribute added twice’ is closed to new replies.