• Hi, my developer has worked one week, but contact form 7 code is not valid W3C code.
    Quote:
    “I have resolve w3c error. One error is there which is dynamically generated from contact form 7. So if I tried to resolve it , then it might affect at other place too.”

    Any idea?
    We enjoy working with this plugin, but we want to make our page 100% webstandard compliant.

    Best, Michael

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 6 replies - 1 through 6 (of 6 total)
  • What’s the validation error? I haven’t noticed any invalid markup generated by this plugin.

    Thread Starter marcup.ch

    (@marcupch)

    Hi Esmi
    Thank you for your message. Here is the error from the W3C.

    Error Line 446, Column 57: document type does not allow element “div” here; missing one of “object”, “ins”, “del”, “map”, “button” start-tag

    <p><div class=”wpcf7-response-output wpcf7-display-none”></div></p>

    Position where error dedected: ……none”></div></p>….. = this character: “>”

    The mentioned element is not allowed to appear in the context in which you’ve placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you’ve forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as “<p>” or “<table>”) inside an inline element (such as ““, “<span>”, or “<font>”).

    Best, Michael

    Have you placed the CF7 shortcode inside <p></p> tags in your post/page?

    Thread Starter marcup.ch

    (@marcupch)

    yes, but on many pages/posts. The error would thus appear more than once in W3C. But if we check our website, only 1 (last of 60..) is shown. Have send you message on your website.
    Best, Michael

    Don’t place the CF7 shortcode inside any HTML tag. It’s completely standalone & self-contained.

    I’m having the same problem. I did not place the shortcode inside HTML tags and I get the following validation error:

    No p element in scope but a p end tag seen.
    <p><div class=”wpcf7-response-output wpcf7-display-none”></div></p>

    Leo

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

The topic ‘[Plugin: Contact Form 7] Code is not valide’ is closed to new replies.