1 <html> 2 <head> 3 <link rel="stylesheet" href="../../js/resources/js-test-style.css"> 4 <script src="../../js/resources/js-test-pre.js"></script> 5 </head> 6 <body> 7 <p id="description"></p> 8 <div id="console"></div> 9 10 <form id='f'> 11 <input type="radio" name="a" value="a" id="i">HTMLInputElement</input> 12 </form> 13 14 <script> 15 description('This test verifies that elements can be fetched by index from HTMLFormElements.'); 16 17 var form = document.getElementById('f'); 18 var my_input = document.getElementById('i'); 19 shouldBe("form[0]", "my_input"); 20 var successfullyParsed = true; 21 </script> 22 <script src="../../js/resources/js-test-post.js"></script> 23 </body> 24 </html> 25