| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script src="../resources/accessibility-helper.js"></script> |
| <script src="../resources/js-test.js"></script> |
| </head> |
| <body> |
| |
| <!-- Test internally named linked anchors --> |
| <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> |
| <p><a name="Tourette_syndrome" id="Tourette_syndrome"></a></p> |
| <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> |
| |
| <A HREF="#bottom" id="bottom_anchor">Link to anchor</A> <A HREF="#bottom2" id="bottom2_anchor">Link to div</A> |
| <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR> |
| <BR><BR><BR><BR><BR>This is some text in the middle<BR><BR><BR><BR><BR> |
| <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR> |
| This is some text. |
| This is a bottom anchor<a id="bottom"></A> |
| <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR> |
| <DIV ID="bottom2">This is a div</DIV> |
| |
| <script> |
| var output = "This test produces a snapshot of various anchor element attributes.\n\n"; |
| if (window.accessibilityController) { |
| window.jsTestIsAsync = true; |
| |
| setTimeout(async function() { |
| output += `${(await waitForFocus("tourette_anchor")).attributesOfLinkedUIElements()}`; |
| output += `${(await waitForFocus("bottom_anchor")).attributesOfLinkedUIElements()}`; |
| output += `${(await waitForFocus("bottom2_anchor")).attributesOfLinkedUIElements()}`; |
| |
| debugEscaped(output); |
| finishJSTest(); |
| }, 0); |
| } |
| </script> |
| </body> |
| </html> |
| |