blob: 5b2127e1be32544d2497ed5448fc487da8afbfb0 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ enableKeygenElement=true ] -->
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<keygen id="keys" />
<pre id="console">
This tests the keygen element.
</pre>
<script>
var keygen = document.getElementById('keys');
shouldBe('keygen.options', 'undefined'); // keygen is not a select
if (window.internals) {
var shadow = internals.shadowRoot(keygen);
shouldBe('shadow.firstChild.tagName', '"SELECT"');
shouldBe('internals.shadowRoot(shadow.firstChild)', 'null');
}
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>