| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| var successfullyParsed = false; |
| <script src="../../resources/js-test-pre.js"></script> |
| <legend>Personalia:</legend> |
| Name: <input type="text" id="inputname"><br> |
| Email: <input type="text"><br> |
| description("This tests that elements in a fieldset are having the correct traits."); |
| if (window.accessibilityController) { |
| var inputname = accessibilityController.accessibleElementById("inputname"); |
| var fieldset = accessibilityController.accessibleElementById("fieldset"); |
| shouldBeTrue("inputname.hasContainedByFieldsetTrait"); |
| shouldBeTrue("fieldset.isEqual(inputname.fieldsetAncestorElement())"); |
| successfullyParsed = true; |
| <script src="../../resources/js-test-post.js"></script> |