blob: 1055677fd2ef463b780a9ab80795859451a51d32 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ enableKeygenElement=true ] -->
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script>
window.jsTestIsAsync = true;
function onLoad() {
shouldBe('document.activeElement', 'document.querySelector("keygen")');
shouldBe('document.activeElement.autofocus', 'true');
finishJSTest();
}
</script>
</head>
<body onload="onLoad();">
<keygen autofocus>
<pre id="console">
This tests whether the keygen element supports the autofocus attribute.
</pre>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>