Title: Woocommerce Valiidation errors
Last modified: October 25, 2016

---

# Woocommerce Valiidation errors

 *  [4090](https://wordpress.org/support/users/4090-1/)
 * (@4090-1)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-valiidation-errors/)
 * My website [http://www.travelideology.com](http://www.travelideology.com) is 
   reporting W3c compliance errors as follows that appear to be generated from woocommerce
   for product pages.
 * As an example see [https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.travelideology.com%2Fshop%2Fbrands%2Feagle-creek%2Fpack-it-on-board%2F](https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.travelideology.com%2Fshop%2Fbrands%2Feagle-creek%2Fpack-it-on-board%2F)
 * Errors are related to two blocks of woocommerce text in the code:
    1. `<img width
   ="200" height="200" src="/wp-content/uploads/2016/03/on-board-200x200.jpg" class
   ="attachme…00.jpg 300w, /wp-content/uploads/2016/03/on-board.jpg 600w" sizes="(
   max-width: 200px) 100vw, 200px">` Error: Attribute **caption** not allowed on
   element img at this point. Error: Attribute **url** not allowed on element img
   at this point.
 * 2.
    `<input type="number" step="1" min="1" max="" name="quantity" value="1" title
   ="Qty" class="input-text qty text" size="4" pattern="[0-9]*" inputmode="numeric"
   >`
 * Error: Bad value for attribute max on element input: The empty string is not 
   a valid floating point number.
    Error: Attribute inputmode not allowed on element
   input at this point. Error: Attribute pattern is only allowed when the input 
   type is email, password, search, tel, text, or url. Warning: The inputmode attribute
   is not supported in all browsers. Please be sure to test, and consider using 
   a polyfill.
 * If someone can tell me how to fix these or where to find the code I would be 
   very appreciative.
 * Thanks

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

 *  [simppa69](https://wordpress.org/support/users/simppa69/)
 * (@simppa69)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/woocommerce-valiidation-errors/#post-8834367)
 * for 1. Use this in functions.php, or own plugin (better):
 *     ```
       add_filter( 'wp_get_attachment_image_attributes', 'remove_image_text' );
       function remove_image_text( $attr ) {
           unset( $attr['caption'] );
         	unset( $attr['url'] );
           return $attr;
       }
       ```
   
 *  [marcspostfach](https://wordpress.org/support/users/marcspostfach/)
 * (@marcspostfach)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/woocommerce-valiidation-errors/#post-8939672)
 * Thanks, simppa69, that worked for me. 🙂
 * I have also problem 2.
    It seems to be related with the “sell only one piece”(
   I don’t know the english name of the checkbox at the moment, my wordpress is 
   in german) at stock under products. If I set this checkbox the error is gone.
   I have only virtual and downloadable products. Maybe this helps to find the problem
   and fix it.

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

The topic ‘Woocommerce Valiidation errors’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3640790)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [w3c validation](https://wordpress.org/support/topic-tag/w3c-validation/)

 * 2 replies
 * 3 participants
 * Last reply from: [marcspostfach](https://wordpress.org/support/users/marcspostfach/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/woocommerce-valiidation-errors/#post-8939672)
 * Status: not resolved