WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Steve Green
Date: Dec 1, 2022 10:44AM


I think that "things more often than not get generated/injected via JS" is stretching the point a bit far, although I have seen a number of websites where the entire contents of the body were generated by scripts. Almost nothing on our website is generated by scripts other than a few attributes that we can't add in the CMS.

And if the JavaScript is targeting elements by their "id" attribute, duplicates in the original source could certainly cause problems. That's why we validate both the initial source and the DOM.

Steve Green
Managing Director
Test Partners Ltd