6 var item
= document
.createElement("li");
7 item
.appendChild(document
.createTextNode(message
));
8 document
.getElementById("console").appendChild(item
);
12 if (window
.testRunner
) {
13 testRunner
.dumpAsText();
15 if (navigator
.userAgent
.search(/\bMac OS X\b/) != -1)
16 modifiers
= ["ctrlKey", "altKey"];
19 eventSender
.keyDown("f", modifiers
);
24 <body onload=
"test()">
25 <p>This test checks to see if accesskey attributes work on legend elements.
</p>
26 <p>If the test passes, you should see one line saying
"focused" and the text field should have focus.
</p>
28 <p><fieldset><legend accesskey=
"f">Information:
</legend><input onfocus=
"log('focused')" type=
"text"></fieldset><p>
30 <ol id=
"console"></ol>