| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 <script> | 5 <script> |
| 6 window.jsTestIsAsync = true; | 6 window.jsTestIsAsync = true; |
| 7 | 7 |
| 8 function onLoad() { | 8 function onLoad() { |
| 9 shouldBe('document.activeElement', 'document.querySelector("keygen")'); | 9 shouldBe('document.activeElement', 'document.querySelector("keygen")'); |
| 10 shouldBe('document.activeElement.autofocus', 'true'); | 10 shouldBe('document.activeElement.autofocus', 'true'); |
| 11 finishJSTest(); | 11 finishJSTest(); |
| 12 } | 12 } |
| 13 </script> | 13 </script> |
| 14 </head> | 14 </head> |
| 15 <body onload="onLoad();"> | 15 <body onload="onLoad();"> |
| 16 <keygen autofocus> | 16 <keygen autofocus> |
| 17 <pre id="console"> | 17 <pre id="console"> |
| 18 This tests whether the keygen element supports the autofocus attribute. | 18 This tests whether the keygen element supports the autofocus attribute. |
| 19 | 19 |
| 20 </pre> | 20 </pre> |
| 21 <script src="../js/resources/js-test-post.js"></script> | |
| 22 </body> | 21 </body> |
| 23 </html> | 22 </html> |
| OLD | NEW |