• I updated Contact Form 7 plugin to latest version, then I made a check on W3C and got following errors:

    • there is no attribute “aria-required”
    • there is no attribute “maxlength” (on a textarea)

    By the way: I disabled on functions.php following row:
    add_filter( 'wpcf7_support_html5', '__return_false' );

    Thanks

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mcseller

    (@mcseller)

    sorry, I meant:
    By the way: I added following row on functions.php:
    add_filter( 'wpcf7_support_html5', '__return_false' );

    Thread Starter mcseller

    (@mcseller)

    Please try to explain why the first line of code fails validation with there is no attribute “aria required” error, the next two lines are ok and the last line of code fails validation with there is no attribute “aria required” error and there is no attribute “maxlength” error

      <li><p>Il tuo nome (richiesto<a href="#richiesto"><sup><strong>1</strong></sup></a>)<br/><span class="wpcf7-form-control-wrap your-name"><input type="text" name="your-name" value="" size="30" maxlength="50" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" /></span></p>

    1. <p>La tua email (richiesto<a href="#richiesto"><sup><strong>1</strong></sup></a>)<br/><span class="wpcf7-form-control-wrap your-email"><input type="text" name="your-email" value="" size="30" maxlength="50" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" aria-required="true" /></span></p>
    2. <p>Oggetto (richiesto<a href="#richiesto"><sup><strong>1</strong></sup></a>)<br/><span class="wpcf7-form-control-wrap your-subject"><input type="text" name="your-subject" value="" size="30" maxlength="50" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" /></span></p>
    3. <p>Il tuo messaggio (richiesto<a href="#richiesto"><sup><strong>1</strong></sup></a>)<br/><span class="wpcf7-form-control-wrap your-message"><textarea name="your-message" cols="43" rows="10" maxlength="512" class="wpcf7-form-control wpcf7-textarea wpcf7-validates-as-required" aria-required="true"></textarea></span></p>

    Thanks

    W3C reports aria-required as an error because it forces the user to put information somewhere. W3C thinks that the user should be free to decide if he wants to put information somewhere or does not.

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

The topic ‘W3C XHTML 1.0 Transitional Validation Errors’ is closed to new replies.