WordPress.org

Ready to get started?Download WordPress

Forums

Fast Secure Contact Form
W3C validation error (9 posts)

  1. drunkfox
    Member
    Posted 3 years ago #

    Hello, I apologize for my English, I know it is not the best.
    I have the following problem using Fast Secure Contact Form plugin.
    The page is it not validate because:"value of attribute "type" cannot be "email".
    Does anybody can help me, please?
    This is the URL.

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

  2. Mike Challis
    Member
    Plugin Author

    Posted 3 years ago #

    This is because input type email isn't in HTML4 specification. It's a specification from HTML5, but the validator work's on HTML4 standard and will show the error when validating forms with input type email.

    Using input type="email" for email addresses is better than using type="text" because then users of (iPad/iPhone, Android) will have the correct keyboard come up for entering an email address. The keyboard will have the @ symbol and .com on it.

    There will be no problems with any older browsers, they all treat type="email" as type="text" anyway.

    So there is an advantage to using input type="email" for email addresses, Mobile Accessibility. The only disadvantage is the validator. Sometimes the validator falls on the wrong side of these kind of issues.

  3. drunkfox
    Member
    Posted 3 years ago #

    Thans a lot for your quik reply!
    Ciao.

  4. siteoptimo
    Member
    Posted 3 years ago #

    I don't want to hijack this topic, but I don't like the fact that the captcha images are the no-go validating point. Why aren't there any widths and heights on any of those images?It takes only a few seconds to implement this.
    After every update I need to go and change the plugin files of every site to get them validated again... I'd really love to see this solved.

  5. Mike Challis
    Member
    Plugin Author

    Posted 3 years ago #

    siteoptimo,

    Can I see a URL to your form please?

  6. siteoptimo
    Member
    Posted 3 years ago #

    Hi Mike,

    The URL doesn't matter, I was to quick with my question in this topic (sorry).
    It isn't a w3c validation problem, but an accessibility issue.
    Every image should have fixed dimensions with width and height attributes to be completely accessible. I'd want the plugin to output images with those attributes.
    I think it makes more sense, no?

    Kind regards and thank you for your answer.

  7. Tony221268
    Member
    Posted 3 years ago #

    If you are determined to validate with the current validators, I did notice an easy work around; just use a text field with label "Email" and appropriate regex (an easy google). Unless Mike can see an issue I think that works.

  8. Mike Challis
    Member
    Plugin Author

    Posted 3 years ago #

    siteoptimo, this is fixed for the next update version.

  9. siteoptimo
    Member
    Posted 3 years ago #

    That's great. Great work Mike. Kudos for making fs contact form the best contact form available.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic