6 if (window
.eventSender
)
7 eventSender
.keyDown("\t");
11 if (window
.testRunner
)
12 testRunner
.dumpAsText();
14 var before
= document
.getElementById("before");
15 var area
= document
.getElementById("area");
20 if (document
.activeElement
== area
)
21 res
.innerHTML
= "Test Passed";
26 <body onload=
"test()">
27 This tests that pressing Tab focuses areas in an image map even if they're not direct children.
29 <div id=
"res">Test Failed
</div>
31 <div id=
"before" tabIndex=
0 />
36 <area id=
"area" shape=
"rect" coords=
"0,0,128,128" href=
"#dummy" />
39 <img width=
"128" height=
"128" usemap=
"#imagemap" ismap
/>
42 <div id=
"after" tabIndex=
0 />