Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-role-on-label.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <label id="label1">text</label>
8 <label id="label2" role="heading">text</label>
9 <p id="description"></p>
10 <div id="console"></div>
11 <script>
12
13     description("This verifies that an ARIA role applied to a label element is not ignored.");
14
15     if (window.accessibilityController) {
16           var label = accessibilityController.accessibleElementById("label1");
17           debug("label without role: " + label.role);
18
19           label = accessibilityController.accessibleElementById("label2");
20           debug("label with role: " + label.role);
21     }
22
23 </script>
24
25 <script src="../resources/js-test-post.js"></script>
26 </body>
27 </html>