Skip to content

Commit 754d56b

Browse files
emilpalssonstephenmathieson
authored andcommitted
fix: replace incorrect tag for meta-refresh rule (#1844)
1 parent 223a4bc commit 754d56b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

doc/rule-descriptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
| list | Ensures that lists are structured correctly | Serious | cat.structure, wcag2a, wcag131 | true |
6464
| listitem | Ensures <li> elements are used semantically | Serious | cat.structure, wcag2a, wcag131 | true |
6565
| marquee | Ensures <marquee> elements are not used | Serious | cat.parsing, wcag2a, wcag222 | true |
66-
| meta-refresh | Ensures <meta http-equiv="refresh"> is not used | Critical | cat.time, wcag2a, wcag2aaa, wcag221, wcag224, wcag325 | true |
66+
| meta-refresh | Ensures <meta http-equiv="refresh"> is not used | Critical | cat.time-and-media, wcag2a, wcag2aaa, wcag221, wcag224, wcag325 | true |
6767
| meta-viewport-large | Ensures <meta name="viewport"> can scale a significant amount | Minor | cat.sensory-and-visual-cues, best-practice | true |
6868
| meta-viewport | Ensures <meta name="viewport"> does not disable text scaling and zooming | Critical | cat.sensory-and-visual-cues, wcag2aa, wcag144 | true |
6969
| object-alt | Ensures <object> elements have alternate text | Serious | cat.text-alternatives, wcag2a, wcag111, section508, section508.22.a | true |

lib/rules/meta-refresh.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
"id": "meta-refresh",
33
"selector": "meta[http-equiv=\"refresh\"]",
44
"excludeHidden": false,
5-
"tags": ["cat.time", "wcag2a", "wcag2aaa", "wcag221", "wcag224", "wcag325"],
5+
"tags": [
6+
"cat.time-and-media",
7+
"wcag2a",
8+
"wcag2aaa",
9+
"wcag221",
10+
"wcag224",
11+
"wcag325"
12+
],
613
"metadata": {
714
"description": "Ensures <meta http-equiv=\"refresh\"> is not used",
815
"help": "Timed refresh must not exist"

0 commit comments

Comments
 (0)