1<!DOCTYPE html> 2<html> 3<head> 4<script src="../../js/resources/js-test-pre.js"></script> 5</head> 6<body> 7<keygen id="keys" /> 8<pre id="console"> 9This tests the keygen element. 10 11</pre> 12<script> 13var keygen = document.getElementById('keys'); 14shouldBe('keygen.options', 'undefined'); // keygen is not a select 15 16if (window.layoutTestController) { 17 var shadow = layoutTestController.shadowRoot(keygen); 18 shouldBe('shadow.firstChild.tagName', '"SELECT"'); 19 shouldBe('layoutTestController.shadowRoot(shadow)', 'null'); 20 shouldBe('layoutTestController.shadowRoot(shadow.firstChild)', 'null'); 21} 22 23var successfullyParsed = true; 24</script> 25<script src="../../js/resources/js-test-post.js"></script> 26</body> 27</html> 28