4 testRunner.dumpAsText();
8 <div id="result"></div>
10 <!-- Test internally named linked anchors -->
11 <li class="toclevel-2"><a href="#Tourette_syndrome" id="tourette_anchor"><span class="tocnumber">2.2</span> <span class="toctext">Tourette syndrome</span></a></li>
12 <p><a name="Tourette_syndrome" id="Tourette_syndrome"></a></p>
13 <h3><span class="editsection">[<a href="/w/index.php?title=Samuel_Johnson&action=edit&section=11" title="Edit section: Tourette syndrome">edit</a>]</span> <span class="mw-headline">Tourette syndrome</span></h3>
15 <A HREF="#bottom" id="bottom_anchor">Link to anchor</A> <A HREF="#bottom2" id="bottom2_anchor">Link to div</A>
16 <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
17 <BR><BR><BR><BR><BR>This is some text in the middle<BR><BR><BR><BR><BR>
18 <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
20 This is a bottom anchor<a id="bottom"></A>
21 <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
22 <DIV ID="bottom2">This is a div</DIV>
26 if (window.accessibilityController) {
27 var result = document.getElementById("result");
28 result.innerText += "Anchor Tests\n";
29 result.innerText += "----------------------\n";
31 var labeledItem = document.getElementById("tourette_anchor");
33 result.innerText += accessibilityController.focusedElement.attributesOfLinkedUIElements() + "\n\n";
35 labeledItem = document.getElementById("bottom_anchor");
37 result.innerText += accessibilityController.focusedElement.attributesOfLinkedUIElements() + "\n\n";
39 labeledItem = document.getElementById("bottom2_anchor");
41 result.innerText += accessibilityController.focusedElement.attributesOfLinkedUIElements() + "\n\n";