blob: 29dfbd352af5b6bf4b8b46ad0e2d0112149ef8e8 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script>
var successfullyParsed = false;
</script>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<form>
<fieldset id="fieldset">
<legend>Personalia:</legend>
Name: <input type="text" id="inputname"><br>
Email: <input type="text"><br>
</fieldset>
</form>
<p id="description"></p>
<div id="console"></div>
<script>
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>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>