| var item = document.createElement("li"); |
| item.appendChild(document.createTextNode(message)); |
| document.getElementById("console").appendChild(item); |
| if (navigator.userAgent.search(/\bMac OS X\b/) != -1) |
| modifiers = ["ctrlKey", "altKey"]; |
| eventSender.keyDown("f", modifiers); |
| <p>This test checks to see if accesskey attributes work on legend elements.</p> |
| <p>If the test passes, you should see one line saying "focused" and the text field should have focus.</p> |
| <p><fieldset><legend accesskey="f">Information:</legend><input onfocus="log('focused')" type="text"></fieldset><p> |