You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ironikart Thanks for the fix. After some additional discussion, we're wondering if the id attribute of script tags should be checked at all, since they're not relevant for accessibility. Thoughts?
@mAAdhaTTah I think that even though most assistive technologies would ignore script tags the DOM spec still says it has to be unique in the document.
A use case may be JS apps that use script tags to store template data and referenced by id. The script tag lets the template content be hidden from assistive technologies, but the JS app turns the content into mounted DOM elements. A duplicate id here may indirectly cause accessibility issues.
It's a stretch, but the check is working now and we're just talking semantics not broken validation.
It appears we have some 3rd-party scripts that are injected additional scripts with an empty id attribute. They look like this in the devtools:
HTML_CodeSniffer is reporting this as a duplicate id error.
The text was updated successfully, but these errors were encountered: