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.

XHTML 1.0 Transitional validation

  1. Hi, this output code doesn't validate with http://validator.w3.org/:

    <script type='text/javascript'>jQuery(document).ready(function($){$('#gform_1').submit(function(){$('#gform_submit_button_1').attr('disabled', 'disabled').after('<img id="gform_ajax_spinner_1" class="gform_ajax_spinner" src="" alt="" />');$('#gform_ajax_frame_1').load( function(){var form_content = $(this).contents().find('#gform_wrapper_1');var confirmation_content = $(this).contents().find('#gforms_confirmation_message');$('#gform_submit_button_1').removeAttr('disabled');if(form_content.length > 0){$('#gform_1').html(form_content.html());$(document).scrollTop($('#gform_1').offset().top);if(window['gformInitDatepicker']) {gformInitDatepicker();}if(window['gformInitPriceFields']) {gformInitPriceFields();}}else if(confirmation_content.length > 0){setTimeout(function(){ $('#gform_1').replaceWith('<' + 'div id=\'gforms_confirmation_message\'' + '>' + confirmation_content.html() + '<' + '/div' + '>'); $(document).scrollTop($('#gforms_confirmation_message').offset().top);}, 50);}else{$('#gform_1').append($(this).contents().find('*').html());gformRedirect();}});});});</script>

    Can You do something?

    Posted 13 years ago on Saturday December 11, 2010 | Permalink
  2. Please post the URL to your form page and I'll take a look at it. I need to see the full form in context.

    Posted 13 years ago on Saturday December 11, 2010 | Permalink
  3. http://www.digitohter.ee/acer/

    This is GF test page.

    Posted 13 years ago on Saturday December 11, 2010 | Permalink
  4. We'll take a look at it and see about a solution for the final 1.5 release. Just FYI, this does validate fine if using the HTML 5 doctype (which is the doctype for the latest version of the default WordPress theme)

    For now, if it's a big deal for you, just use the standard form submission - not Ajax and that content won't be output.

    Posted 13 years ago on Saturday December 11, 2010 | Permalink
  5. Thank You, I'll wait solution in final 1.5 release.

    Posted 13 years ago on Saturday December 11, 2010 | Permalink
  6. Kevin, thank You for the solution, it works. Page passed now with 1 warning.

    Posted 13 years ago on Saturday December 11, 2010 | Permalink