cfleizach@apple.com | bbfb860 | 2009-06-27 00:07:11 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 | <html> |
| 3 | <head> |
mark.lam@apple.com | a931ab2 | 2013-09-08 01:18:24 +0000 | [diff] [blame] | 4 | <script src="../resources/js-test-pre.js"></script> |
cfleizach@apple.com | bbfb860 | 2009-06-27 00:07:11 +0000 | [diff] [blame] | 5 | </head> |
| 6 | <body id="body"> |
| 7 | <h1 aria-hidden="true">h1 <b>test</b></h1> |
| 8 | <h2 aria-hidden="false">h2</h2> |
| 9 | <p id="description"></p> |
| 10 | <div id="console"></div> |
| 11 | |
| 12 | <script> |
| 13 | |
| 14 | description("This tests that the aria-hidden attribute works correctly with accessibility. The H1 element (and its children) should not appear in the AX hierarchy. The H2 element should be the first child"); |
| 15 | |
| 16 | if (window.accessibilityController) { |
| 17 | |
| 18 | var body = document.getElementById("body"); |
| 19 | body.focus(); |
| 20 | var h2 = accessibilityController.focusedElement.childAtIndex(0); |
bfulgham@apple.com | 1faa176 | 2013-06-24 20:46:38 +0000 | [diff] [blame] | 21 | debug("h2.title is " + h2.title); |
cfleizach@apple.com | bbfb860 | 2009-06-27 00:07:11 +0000 | [diff] [blame] | 22 | } |
| 23 | |
cfleizach@apple.com | bbfb860 | 2009-06-27 00:07:11 +0000 | [diff] [blame] | 24 | </script> |
| 25 | |
mark.lam@apple.com | a931ab2 | 2013-09-08 01:18:24 +0000 | [diff] [blame] | 26 | <script src="../resources/js-test-post.js"></script> |
cfleizach@apple.com | bbfb860 | 2009-06-27 00:07:11 +0000 | [diff] [blame] | 27 | </body> |
| 28 | </html> |