I think if the validator can't determine code structure, it shouldn't throw an error with the documentation support as a WCAG technique.
For example, rule wcag/h63 throws an error if a table element's th elements don't have a scope attribute. However, upon reviewing the code, it's a correctly marked up table element, with no need for a scope attribute.
- Technique reference page: https://www.w3.org/WAI/WCAG22/Techniques/html/H63
- The technique explicitly states that the
scope attribute is not required if it's a simple table w/headers.
- There are other techniques listed on that page for additional ways to have valid markup
I recognize that this might be an upstream issue, but extra markup where none is required can create extra issues. Here's the WCAG guidance on techniques: https://www.w3.org/WAI/WCAG22/Techniques/about
I think if the validator can't determine code structure, it shouldn't throw an error with the documentation support as a WCAG technique.
For example, rule
wcag/h63throws an error if a table element'sthelements don't have ascopeattribute. However, upon reviewing the code, it's a correctly marked up table element, with no need for ascopeattribute.scopeattribute is not required if it's a simple table w/headers.I recognize that this might be an upstream issue, but extra markup where none is required can create extra issues. Here's the WCAG guidance on techniques: https://www.w3.org/WAI/WCAG22/Techniques/about