WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Why are both validation and accessibility tools showing duplicate id's


From: Patrick H. Lauke
Date: Nov 30, 2022 10:12AM

On 30/11/2022 16:08, Jim Byrne Accessible Web Design wrote:

> I'm testing a website and both my accessibility tools and page validation are saying the page has duplicate ids. However when I look at the code the all look unique to me. Here are just a few examples from W3 page validation:
> ' Duplicate ID gform_wrapper_5.
> ' Duplicate ID gform_5.
> ' Duplicate ID gform_fields_5.
> ' Duplicate ID field_5_1.
> ' Duplicate ID input_5_1.
> ' Duplicate ID field_5_2.
> ' Duplicate ID input_5_2.
> ' Duplicate ID input_5_2_3_container.
> They all look unique. No?

That list would generally mean that there's two or more elements that
use each of those IDs. As in yes they're all different from each other
in that list, but each "Duplicate ID" bullet refers to there being two
or more elements in the page that use that particular ID, no?

Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke