Skip to content

Commit 4112a94

Browse files
committed
fix: rule name changed
1 parent ec78015 commit 4112a94

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed
Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
1-
[]
1+
[
2+
{
3+
"description": "Ensures every HTML document has a lang attribute",
4+
"help": "<html> element must have a lang attribute",
5+
"helpUrl": "https://dequeuniversity.com/rules/axe/2.1/html-has-lang?application=axeAPI",
6+
"id": "html-has-lang",
7+
"impact": "serious",
8+
"nodes": [
9+
{
10+
"all": [],
11+
"any": [
12+
{
13+
"data": "",
14+
"id": "has-lang",
15+
"impact": "serious",
16+
"message": "The <html> element does not have a lang attribute",
17+
"relatedNodes": []
18+
}
19+
],
20+
"html": "<html><head></head><body><a href=\"\" onclick=\"window.location.href = 'http://www.google.com';\">no href</a>\n\n</body></html>",
21+
"impact": "serious",
22+
"none": [],
23+
"target": [
24+
"html"
25+
]
26+
}
27+
],
28+
"tags": [
29+
"wcag2a",
30+
"wcag311"
31+
]
32+
}
33+
]

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('Axe runner', function main() {
5959
crawler.addRunner('axe', new AxeRunner(), {
6060
runOnly: {
6161
type: 'rule',
62-
values: ['html-lang'],
62+
values: ['html-has-lang'],
6363
},
6464
});
6565

0 commit comments

Comments
 (0)