8000 feat(rules): add `strict` option to `wcag/h63` to enforce for all tables · html-validate/html-validate@51eecf2 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 51eecf2

Browse files
committed
feat(rules): add strict option to wcag/h63 to enforce for all tables
1 parent 0e84024 commit 51eecf2

File tree

3 files changed

+401
-208
lines changed

3 files changed

+401
-208
lines changed

docs/rules/wcag/h63.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ A table is considered simple when:
2020

2121
In all other cases, the table is considered complex and requires the `scope` attribute to be set.
2222

23+
Use the `strict` option to enforce for all tables (simple and complex).
24+
2325
[1]: https://www.w3.org/WAI/WCAG22/Techniques/html/H63
2426

2527
## Rule details
@@ -97,6 +99,21 @@ Alternatively use a {@link usage#inline-configuration disable directive} somewhe
9799
| 1 | 2 | 3 |
98100
```
99101

102+
## Options
103+
104+
This rule takes an optional object:
105+
106+
```json
107+
{
108+
"strict": false
109+
}
110+
```
111+
112+
### `strict`
113+
114+
When `strict` is enabled, this rule enforces the `scope` attribute on all `<th>` elements without considering if the table is simple or complex.
115+
100116
## Version history
101117

118+
- %version% - Simple tables ignored by default and added `strict` option to validate all tables.
102119
- 7.10.0 - Rule added.

0 commit comments

Comments
 (0)
0