Title: HTML Validator Error: Duplicate attribute tabindex.
Last modified: February 24, 2023

---

# HTML Validator Error: Duplicate attribute tabindex.

 *  Resolved [Patrick Whitty-Clarke](https://wordpress.org/support/users/zerodegreeburn/)
 * (@zerodegreeburn)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/html-validator-error-duplicate-attribute-tabindex/)
 * Hi,
 * When running my site through [https://validator.w3.org/nu/](https://validator.w3.org/nu/)
   I noticed an error to do with duplicate tabindexes. The error happens with this
   plugin, here is an example of the code:
 * ul role=”radiogroup” aria-label=”Prescription Interval” class=”variable-items-
   wrapper button-variable-items-wrapper wvs-style-squared” data-attribute_name=”
   attribute_prescription-interval” data-attribute_values=”[&quot;1 month&quot;,&
   quot;3 months&quot;,&quot;6 months&quot;,&quot;12 months&quot;]”><li aria-checked
   =”false” tabindex=”0″ data-wvstooltip=”1 month” class=”variable-item button-variable-
   item button-variable-item-1-month ” title=”1 month” data-title=”1 month” data-
   value=”1 month” role=”radio” tabindex=”0″><div class=”variable-item-contents”
   ><span class=”variable-item-span variable-item-span-button”>1 month</span></div
   ></li><li aria-checked=”false” tabindex=”0″ data-wvstooltip=”3 months” class=”
   variable-item button-variable-item button-variable-item-3-months ” title=”3 months”
   data-title=”3 months” data-value=”3 months” role=”radio” tabindex=”0″><div class
   =”variable-item-contents”><span class=”variable-item-span variable-item-span-
   button”>3 months</span></div></li><li aria-checked=”false” tabindex=”0″ data-
   wvstooltip=”6 months” class=”variable-item button-variable-item button-variable-
   item-6-months ” title=”6 months” data-title=”6 months” data-value=”6 months” 
   role=”radio” tabindex=”0″><div class=”variable-item-contents”><span class=”variable-
   item-span variable-item-span-button”>6 months</span></div></li><li aria-checked
   =”false” tabindex=”0″ data-wvstooltip=”12 months” class=”variable-item button-
   variable-item button-variable-item-12-months ” title=”12 months” data-title=”
   12 months” data-value=”12 months” role=”radio” tabindex=”0″><div class=”variable-
   item-contents”><span class=”variable-item-span variable-item-span-button”>12 
   months</span></div></li></ul>
 * As you can see, every <li> element has tabindex=”0″ twice.
 * The relevant code is in includes/class-woo-variation-swatches-product-page.php
   around line 370.
 * It is quite a minor issue, but I think HTML errors somewhat affect pagespeed 
   scoring (I think, in any case our client would prefer to have no HTML validation
   errors).
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Support [fizanzvai](https://wordpress.org/support/users/fizanzvai/)
 * (@fizanzvai)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/html-validator-error-duplicate-attribute-tabindex/#post-16508327)
 * [@zerodegreeburn](https://wordpress.org/support/users/zerodegreeburn/)
 * Thanks for reaching out to us. Can you please share which Variation Swatches 
   version you are using on your site?
 * Please make sure you have added any js to push “tabindex” to `<li>` or not. Also,
   you can plugin conflict test by disabling all plugins except WooCommerce and 
   Variation Swatches.
 * To run the plugin conflict test, you can use Health Check & Troubleshooting plugin.
 * From my inspection, I didn’t find a second tabindex. You can check this URL: 
   [https://wptestbox.com/woovs/product/hoodie/](https://wptestbox.com/woovs/product/hoodie/)
 * Here is a screenshot for you: [https://prnt.sc/DSTM0CViAMOF](https://prnt.sc/DSTM0CViAMOF)

Viewing 1 replies (of 1 total)

The topic ‘HTML Validator Error: Duplicate attribute tabindex.’ is closed to new
replies.

 * ![](https://ps.w.org/woo-variation-swatches/assets/icon-256x256.gif?rev=3157951)
 * [Variation Swatches for WooCommerce](https://wordpress.org/plugins/woo-variation-swatches/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-variation-swatches/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-variation-swatches/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-variation-swatches/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-variation-swatches/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-variation-swatches/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [fizanzvai](https://wordpress.org/support/users/fizanzvai/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/html-validator-error-duplicate-attribute-tabindex/#post-16508327)
 * Status: resolved