Skip to content

Commit a2be133

Browse files
melnarytanhauhau
authored andcommitted
Test required ARIA props check
1 parent e4bb4d6 commit a2be133

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div role="heading"></div>
2+
<span role="checkbox"></span>
3+
<div role="meter"></div>
4+
5+
<div role="heading" aria-level="1"></div>
6+
<span role="checkbox" aria-checked="false"></span>
7+
<div role="meter" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[
2+
{
3+
"code": "a11y-role-has-required-aria-props",
4+
"message": "A11y: Elements with the ARIA role \"heading\" must have the following attributes defined: aria-level",
5+
"start": {
6+
"line": 1,
7+
"column": 5,
8+
"character": 5
9+
},
10+
"end": {
11+
"line": 1,
12+
"column": 19,
13+
"character": 19
14+
},
15+
"pos": 5
16+
},
17+
{
18+
"code": "a11y-role-has-required-aria-props",
19+
"message": "A11y: Elements with the ARIA role \"checkbox\" must have the following attributes defined: aria-checked",
20+
"start": {
21+
"line": 2,
22+
"column": 6,
23+
"character": 33
24+
},
25+
"end": {
26+
"line": 2,
27+
"column": 21,
28+
"character": 48
29+
},
30+
"pos": 33
31+
},
32+
{
33+
"code": "a11y-role-has-required-aria-props",
34+
"message": "A11y: Elements with the ARIA role \"meter\" must have the following attributes defined: aria-valuemax,aria-valuemin,aria-valuenow",
35+
"start": {
36+
"line": 3,
37+
"column": 5,
38+
"character": 62
39+
},
40+
"end": {
41+
"line": 3,
42+
"column": 17,
43+
"character": 74
44+
},
45+
"pos": 62
46+
}
47+
]

0 commit comments

Comments
 (0)