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