| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <span tabindex="-1" id="item1">test</span> |
| <span tabindex="0" id="item2">test</span> |
| <span tabindex="1" id="item3">test</span> |
| <p tabindex="-1" id="item4">test |
| description("This tests that if tabindex is set on an object, it will be accessible (even if it is usually not)"); |
| if (window.accessibilityController) { |
| for (var k = 1; k < 5; k++) { |
| var item = accessibilityController.accessibleElementById("item" + k); |
| debug("Item " + k + ": Is focusable: " + item.isFocusable); |
| debug("Item " + k + ": " + item.role); |
| <script src="../resources/js-test-post.js"></script> |