Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / accessibility / internal-link-anchors2.html
blobc44e3597b021b8832b54f54ae9f0fb79c6aa2a88
1 <html>
2 <script>
3 if (window.layoutTestController)
4 layoutTestController.dumpAsText();
5 </script>
6 <body>
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&amp;action=edit&amp;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>
19 This is some text.
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>
25 <script>
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");
32 labeledItem.focus();
33 result.innerText += accessibilityController.focusedElement.attributesOfLinkedUIElements() + "\n\n";
35 labeledItem = document.getElementById("bottom_anchor");
36 labeledItem.focus();
37 result.innerText += accessibilityController.focusedElement.attributesOfLinkedUIElements() + "\n\n";
39 labeledItem = document.getElementById("bottom2_anchor");
40 labeledItem.focus();
41 result.innerText += accessibilityController.focusedElement.attributesOfLinkedUIElements() + "\n\n";
43 </script>
44 </body>
45 </html>