| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <label id="label1">text</label> |
| <label id="label2" role="heading">text</label> |
| description("This verifies that an ARIA role applied to a label element is not ignored."); |
| if (window.accessibilityController) { |
| var label = accessibilityController.accessibleElementById("label1"); |
| debug("label without role: " + label.role); |
| label = accessibilityController.accessibleElementById("label2"); |
| debug("label with role: " + label.role); |
| <script src="../resources/js-test-post.js"></script> |