File tree Expand file tree Collapse file tree 3 files changed +401
-208
lines changed Expand file tree Collapse file tree 3 files changed +401
-208
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ A table is considered simple when:
20
20
21
21
In all other cases, the table is considered complex and requires the ` scope ` attribute to be set.
22
22
23
+ Use the ` strict ` option to enforce for all tables (simple and complex).
24
+
23
25
[ 1 ] : https://www.w3.org/WAI/WCAG22/Techniques/html/H63
24
26
25
27
## Rule details
@@ -97,6 +99,21 @@ Alternatively use a {@link usage#inline-configuration disable directive} somewhe
97
99
| 1 | 2 | 3 |
98
100
```
99
101
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
+
100
116
## Version history
101
117
118
+ - %version% - Simple tables ignored by default and added ` strict ` option to validate all tables.
102
119
- 7.10.0 - Rule added.
You can’t perform that action at this time.
0 commit comments