Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule a25f45 table headers - mismatch between rule applicability, examples and HTML spec #1910

Open
dd8 opened this issue Aug 9, 2022 · 0 comments · May be fixed by #2110
Open

Rule a25f45 table headers - mismatch between rule applicability, examples and HTML spec #1910

dd8 opened this issue Aug 9, 2022 · 0 comments · May be fixed by #2110
Assignees

Comments

@dd8
Copy link
Collaborator

dd8 commented Aug 9, 2022

There's a mismatch between the rule applicability, the rule example wording and the HTML spec:

  • Rule applicability allows headers to reference td or th elements (cells, as defined by the HTML Standard)
  • Rule wording in the examples suggest role=rowheader or role=columnheader is cause of pass/fail, but these aren't relevant to the rule applicability
  • The HTML Standard only allows headers to reference th elements

Rule Applicability

Each target's attribute value is a set of space separated tokens. Each token is the value of the id attribute of an element, that is a cell of the same table.

https://act-rules.github.io/rules/a25f45#expectation-1

HTML Standard

The HTML living standard requires headers to reference th elements

The headers attribute, if specified, must contain a string consisting of an unordered set of unique space-separated tokens, none of which are identical to another token and each of which must have the value of an ID of a th element taking part in the same table as the td or th element (as defined by the table model).

Rule Examples

The rule examples suggest that role=rowheader or role=columnheader is relevant to passing or failing the rule:

https://act-rules.github.io/rules/a25f45#passed-example-5
https://act-rules.github.io/rules/a25f45#failed-example-4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants