-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathr78-accordions.html
executable file
·59 lines (32 loc) · 1.21 KB
/
r78-accordions.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>x</title>
<style>
</style>
<script src="file:///C:/cygwin64/home/dtr/axe-core/axe.js"></script>
<script>
addEventListener('DOMContentLoaded', (event) => {
setTimeout(() => {
const axeRule = 'x' ; // eg. 'color-contrast', 'link-in-text-block'
axe.run({runOnly: [axeRule]}).then((v) => {
console.dir("passes:", v.passes);
console.dir("violations:", v.violations);
console.dir("inapplicable:", v.inapplicable);
console.dir("incomplete:", v.incomplete);
console.dir("all:", v);
});
}, 1000);
});
</script>
</head>
<body>
<main>
<h2><a href="#">link within heading. before the 2023-03-29 alfa release: this failed. as of the 2023-03-29 alfa release: this now passes.</a></h2>
<a href="#"><h2>heading within link. before the 2023-03-29 alfa release: this failed. as of the 2023-03-29 alfa release: this still fails.</h2></a>
<h2>normal heading, no link. before the 2023-03-29 alfa release: this failed. as of the 2023-03-29 alfa release: this still fails.</h2>
</main>
</body>
</html>