Skip to content

fix(html5): `<th>` does not require `scope` attribute

Tugrul Ates requested to merge (removed):feature/hr-scope-optional into master

The attribute scope is not required on h2 in HTML5. Its default value is auto, since (it seems) 2013. This change will drop all enforcement on it.

Considered, but not done:

  • Add a custom rule like wcag/h63 to enforce scope. Not done because no existing rule prohibits scope="auto".
  • Add an opinionated rule for scope="auto", e.g., mixed use with colspan and rowspan. Doesn’t fit into the essence of the tool. Also see above.
  • Pass html-validate on public docs. They were already failing.
  • Update CHANGELOG.md per CONTRIBUTING.md. This seems to be automated now.

Checklist

  • Documentation updated
  • Change covered by a testcase
  • Commit history cleaned (no WIP, fixups, etc)

Merge request reports