3 <script src=
"../../resources/js-test.js"></script>
6 <a id=
"anch" href=
"#"></a>
7 <a id=
"anch2" href=
"#"></a>
11 description('This tests that focus() and sequential focus navigation work on empty anchors.');
13 var emptyAnchor1
= document
.getElementById("anch");
14 var emptyAnchor2
= document
.getElementById("anch2");
17 shouldBe('document.activeElement', 'emptyAnchor1');
19 testRunner
.overridePreference('WebKitTabToLinksPreferenceKey', true);
20 eventSender
.keyDown('\t');
21 shouldBe('document.activeElement', 'emptyAnchor2');