4 <script src="../js/resources/js-test-pre.js"></script>
6 window.jsTestIsAsync = true;
9 shouldBe('document.activeElement', 'document.querySelector("keygen")');
10 shouldBe('document.activeElement.autofocus', 'true');
14 successfullyParsed = true;
17 <body onload="onLoad();">
20 This tests whether the keygen element supports the autofocus attribute.
23 <script src="../js/resources/js-test-post.js"></script>