Title: W3C XHTML 1.0 Transitional Validation Errors
Last modified: August 21, 2016

---

# W3C XHTML 1.0 Transitional Validation Errors

 *  [mcseller](https://wordpress.org/support/users/mcseller/)
 * (@mcseller)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/w3c-xhtml-10-transitional-validation-errors/)
 * 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/](http://wordpress.org/plugins/contact-form-7/)

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

 *  Thread Starter [mcseller](https://wordpress.org/support/users/mcseller/)
 * (@mcseller)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/w3c-xhtml-10-transitional-validation-errors/#post-4076152)
 * sorry, I meant:
    By the way: I added following row on functions.php: `add_filter('
   wpcf7_support_html5', '__return_false' );`
 *  Thread Starter [mcseller](https://wordpress.org/support/users/mcseller/)
 * (@mcseller)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/w3c-xhtml-10-transitional-validation-errors/#post-4076294)
 * 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_
    1.  <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>`
    2. `<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>`
    3. `<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>`
    4. `<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
 *  [c-schaefer-foto.de](https://wordpress.org/support/users/c-schaefer-fotode/)
 * (@c-schaefer-fotode)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/w3c-xhtml-10-transitional-validation-errors/#post-4076508)
 * 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.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [c-schaefer-foto.de](https://wordpress.org/support/users/c-schaefer-fotode/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/w3c-xhtml-10-transitional-validation-errors/#post-4076508)
 * Status: not resolved