• Hey. Thanks for sharing this plugin with the community.

    I’ve noticed that HTML validation breaks on the pages where forms are included.

    A test site: https://labs.oldrup.net/plugins/wp-fluent-forms/

    The errors include Attribute autocomplete is only allowed when the input type is color, date, datetime-local, email, hidden, month, number, password, range, search, tel, text, time, url, or week. and Element style not allowed as child of element div in this context.

    Is there any way to achieve valid HTML output in Fluid Forms?

    Kind regards
    Bjarne

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Bjarne Oldrup

    (@oldrup)

    Url of test site has changed to
    https://labs.oldrup.net/plugin/wp-fluent-forms/

    One html error is related to honeypot. The other seems just to be a stray style tag. Both probably fixable without to much fuss 🙂

    Plugin Contributor WPManageNinja

    (@wpmanageninja)

    hello @oldrup
    Thanks for reporting this issue. We are going to fix the issues in our next version.

    Plugin Author Shahjahan Jewel

    (@techjewel)

    Hello @oldrup,
    We have improved the HTML output. Please feel free to test and let me know if you think we can improve more.
    Thanks

    Thread Starter Bjarne Oldrup

    (@oldrup)

    Hey! Thanks for the update! 🙂

    There are still some issues. If you try and validate the demo form at https://oldrup.net/plugin/wp-fluent-forms/ – two errors exists:

    Attribute step not allowed on element input at this point.

    and

    Element style not allowed as child of element body in this context.

    The first might be called “data-step”, and the second is probably a stray style tag that belongs somewhere else, eg. probably fixable without too much recoding.

    Validation report: https://validator.w3.org/nu/?showsource=yes&doc=https%3A%2F%2Foldrup.net%2Fplugin%2Fwp-fluent-forms%2F#l616c29

    Please let me know if I can assist in further troubleshooting.

    Kind regards
    Bjarne Oldrup

    Plugin Author Shahjahan Jewel

    (@techjewel)

    hello @oldrup
    Thank you so much for pointing these. We will definitely work on these and improve. You know it’s a process and we are committed to improving it.

    I can see the step error and We are fixing it.

    The style inside <body> tag is controversial. Many websites use this nowadays where they need to add css on demand. As Fluent Forms does not load css for all the pages. It’s load only in the pages where you put shortcode. We also very careful about the resource we are using in the server.
    That’s why we push some inline CSS (say for button styles) into the body/footer hook.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Is valid HTML output possible?’ is closed to new replies.