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
60
61
62
63
64
65
66
67
content / test / data / accessibility / html / landmark.html [blame]
<!--
@MAC-ALLOW:AXRoleDescription
@WIN-ALLOW:xml-roles:*
@AURALINUX-ALLOW:xml-roles:*
-->
<!DOCTYPE html>
<html>
<body>
<header>This is a header element.</header>
<aside>This is an aside element.</aside>
<address>This is an address element.</address>
<footer>This is a footer element.</footer>
<form>This is a form element.</form>
<main>This is a main element.</main>
<nav>This is a nav element.</nav>
<div role="application">This is an ARIA application landmark.</div>
<div role="banner">This is an ARIA banner landmark.</div>
<div role="complementary">This is an ARIA complementary landmark.</div>
<div role="contentinfo">This is an ARIA contentinfo landmark.</div>
<div role="form" aria-label="Named form">This is an ARIA form landmark.</div>
<div role="main">This is an ARIA main landmark.</div>
<div role="navigation">This is an ARIA navigation landmark.</div>
<div role="search">This is an ARIA search landmark.</div>
<article><header>This should NOT banner role.</header></article>
<aside><header>This should NOT have banner role.</header></aside>
<nav><header>This should NOT have banner role.</header></nav>
<section><header>This should NOT have banner role.</header></section>
<main><header>This should NOT have banner role.</header></main>
<article><div><header>This should NOT banner role.</header></div></article>
<aside><div><header>This should NOT have banner role.</header></div></aside>
<nav><div><header>This should NOT have banner role.</header></div></nav>
<section><div><header>This should NOT have banner role.</header></div></section>
<main><div><header>This should NOT have banner role.</header></div></main>
<article><footer>This should NOT footer role.</footer></article>
<aside><footer>This should NOT have footer role.</footer></aside>
<nav><footer>This should NOT have footer role.</footer></nav>
<section><footer>This should NOT have footer role.</footer></section>
<main><footer>This should NOT have footer role.</footer></main>
<article><div><footer>This should NOT footer role.</footer></div></article>
<aside><div><footer>This should NOT have footer role.</footer></div></aside>
<nav><div><footer>This should NOT have footer role.</footer></div></nav>
<section><div><footer>This should NOT have footer role.</footer></div></section>
<main><div><footer>This should NOT have footer role.</footer></div></main>
<article><aside>This should NOT complementary role.</aside></article>
<aside><aside>This should NOT have complementary role.</aside></aside>
<nav><aside>This should NOT have complementary role.</aside></nav>
<section><aside>This should NOT have complementary role.</aside></section>
<main><aside>This should have complementary role.</aside></main>
<article><div><aside>This should NOT complementary role.</aside></div></article>
<aside><div><aside>This should NOT have complementary role.</aside></div></aside>
<nav><div><aside>This should NOT have complementary role.</aside></div></nav>
<section><div><aside>This should NOT have complementary role.</aside></div></section>
<main><div><aside>This should have complementary role.</aside></div></main>
<article><div><aside role="complementary">This should have complementary role.</aside></div></article>
<aside><div><aside role="complementary">This should have complementary role.</aside></div></aside>
<nav><div><aside role="complementary">This should have complementary role.</aside></div></nav>
<section><div><aside role="complementary">This should have complementary role.</aside></div></section>
</body>
</html>