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.

Gravity Forms Generates W3C Validation Errors.

  1. The page is http://www.ncer1.org/contact/. It's the only page on this site that generates W3C validation errors. Here are the errors:

    http://pastie.org/2587214

    Instead of using the type attribute for your built in fields, can't you use style or class so we don't get W3C validation errors? These types of errors will prevent search engines from indexing the page.

    Posted 13 years ago on Sunday September 25, 2011 | Permalink
  2. Victor,

    Here's the deal. Your doctype is defining the document as XHTML 1.0 Transitional

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en-US">
    <head profile="http://gmpg.org/xfn/11">

    and you're using the optional HTML 5 field types in your form (email, tel, url, etc.) so that's why you're seeing those errors. You can go to your form settings page and set the "Output HTML5" option to "no" and then the fields will use the XHTML 1.0 compliant "text" input type.

    screenshot: http://i.imgur.com/Ty8tY.png

    Using the input type is standard HTML markup and isn't something that you just replace with a class. Markup and presentation/styling are not the same thing.

    Try disabling the HTML5 fields and give it another shot. I'm pretty sure you'll see a marked improvement.

    Posted 13 years ago on Sunday September 25, 2011 | Permalink
  3. Perfect!! GravityForms is such an awesome tool! I knew you'd have to have this covered and I was just missing something. Mea culpa!

    Thank you so very much!

    Posted 13 years ago on Sunday September 25, 2011 | Permalink
  4. Thanks Victor. I'm happy we could help out.

    Posted 13 years ago on Sunday September 25, 2011 | Permalink

This topic has been resolved and has been closed to new replies.