| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 function log(message) | |
| 5 { | |
| 6 var item = document.createElement("li"); | |
| 7 item.appendChild(document.createTextNode(message)); | |
| 8 document.getElementById("console").appendChild(item); | |
| 9 } | |
| 10 function test() | |
| 11 { | |
| 12 if (window.testRunner) { | |
| 13 testRunner.dumpAsText(); | |
| 14 eventSender.keyDown("f", "accessKey"); | |
| 15 } | |
| 16 } | |
| 17 </script> | |
| 18 </head> | |
| 19 <body onload="test()"> | |
| 20 <p>This test checks to see if accesskey attributes work on legend elements.</p> | |
| 21 <p>If the test passes, you should see one line saying "focused" and the text fie
ld should have focus.</p> | |
| 22 <hr> | |
| 23 <p><fieldset><legend accesskey="f">Information:</legend><input onfocus="log('foc
used')" type="text"></fieldset><p> | |
| 24 <hr> | |
| 25 <ol id="console"></ol> | |
| 26 </body> | |
| 27 </html> | |
| OLD | NEW |