HTML_CodeSniffer is a client-side JavaScript application that checks a HTML document or source code, and detects violations of a defined coding standard. Comes with standards that cover the three conformance levels of the W3C's Web Content Accessibility Guidelines (WCAG) 2.0 and the U.S. Section 508 legislation.
Error: Incorrect headers attribute on this td element. Expected "a b one" but found "a one"
Error: Incorrect headers attribute on this td element. Expected "a b two" but found "a two"
Error: Incorrect headers attribute on this td element. Expected "a b one" but found "b one"
Error: Incorrect headers attribute on this td element. Expected "a b two" but found "b two"
These errors appear both on the HTML CodeSniffer website and when using pa11y, which has a dependency on the HTML CodeSniffer.
I'd expect there to be no error at all here; the tds are clearly related to only one of the headers above them, this is explicit both visually and in the markup.
I think the following is a false positive. Given the following table:
returns the following errors:
These errors appear both on the HTML CodeSniffer website and when using pa11y, which has a dependency on the HTML CodeSniffer.
This example tutorial from WAI on W3 also fails.
Expectation
I'd expect there to be no error at all here; the tds are clearly related to only one of the headers above them, this is explicit both visually and in the markup.