• Resolved SjoerdKoelewijn

    (@sjoerdkoelewijn)


    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">,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @sjoerdkoelewijn

    I hope you are doing good today.

    This issue was fixed in the last update and all should be fine. Are you using the current version of Formianator?

    Kind Regards,
    Kris

    Thread Starter SjoerdKoelewijn

    (@sjoerdkoelewijn)

    Hi Kris,

    I’m using v1.14.11 which is the latest version if i’m not mistaken?

    Thanks for looking into this.

    Sjoerd

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @sjoerdkoelewijn,

    It seems that this specific one wasn’t addressed with the update ??
    Seems to be related to placeholder for AJAX loaded forms which gets replaced when the form is loaded.

    Anyway, devs are notified and are looking into it further ??

    Cheers,
    Predrag

    Thread Starter SjoerdKoelewijn

    (@sjoerdkoelewijn)

    Hi Predrag,

    Yes for browsers that have javascript enabled the form with the empty attribute is replaced. Unfortunately the W3C html validation just looks at the HTML so the error is flagged.

    Anyway, thanks for looking into this issue. I’ll just change the plugin code for now to get around it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Empty action attribute – HTML Validation error’ is closed to new replies.