PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

HTML Validation errors

  1. Hi,

    Just been checking my new build for HTML validity and I'm getting a number of errors from the markup produced by Gravity forms, like this..

    end tag for element "p" which is not open
    …' id='gform_wrapper_2' ></p>

    Also some warnings, like this..

    character "<" is the first character of a delimiter but occurred as data
    …ton_2').attr('disabled', true).after('<' + 'img id="gform_ajax_spinner_2" cla…

    Is there a way of clearing this invalid markup up?

    Cheers,

    Michael.

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  2. David Peralty

    Can you link to your form please? Gravity Forms shouldn't be outputting any extra markup.

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  3. Sure thing.. you'll find the form here.

    Thanks for your help..

    Michael.

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  4. Hmm, just realised..

    I'm running wpautop() just after do_shortcode() on the content of that page. Perhaps it's the wpautop() function that is creating the invalid markup?

    I'm just gonna go try removing that and see what happens..

    m.

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  5. Cool cool. That got rid of the </p> errors. What about this one?

    Line 125, Column 71: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
    …n gform_wrapper' id='gform_wrapper_2' ><a id='gf_2' name='gf_2' class='gform_a…

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  6. David Peralty

    Yeah it looks like a theme or plugin is adding in a bunch of paragraph tags.

    You'll want to do the following to test for sure.
    http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    Then you'll want to find the source of the issue. If it is a theme or plugin, you'll want to contact the author about all the paragraph tags that are being added.

    Posted 12 years ago on Friday May 11, 2012 | Permalink