WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Element ID is not unique (style tags within head of html)

for

From: Patrick H. Lauke
Date: Feb 11, 2020 9:00AM


On 11/02/2020 15:52, Cindy Duggan wrote:
[...]
> I am having a hard time understanding how the duplicate id for 2 style tags
> relates to the WCAG criteria and why this is considered an error.

4.1.1 is a very naive SC that fails particular "code smells" because
they *may* cause problems in different user agents, which then *may*
have an accessibility impact.

See discussion here about deprecating that SC altogether
https://github.com/w3c/wcag/issues/770

I would say: if the 3rd party solution could be nudged towards not
spitting out invalid HTML, that'd be good. Otherwise, just take this as
a mild failure (as it incontrovertibly is a failure of 4.1.1), but
document that you're aware of the failure and don't find it has any
actual real impact on the accessibility of the site/page.

P
--
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