summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/HTMLFormElement/htmlformelement-indexed-getter.html
blob: b45c35f764b062e1fa408ea81d4c21c6c55a353b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<head>
<link rel="stylesheet" href="../../js/resources/js-test-style.css">
<script src="../../js/resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>

<form id='f'>
  <input type="radio" name="a" value="a" id="i">HTMLInputElement</input>
</form>

<script>
description('This test verifies that elements can be fetched by index from HTMLFormElements.');

var form = document.getElementById('f');
var my_input = document.getElementById('i');
shouldBe("form[0]", "my_input");
var successfullyParsed = true;
</script>
<script src="../../js/resources/js-test-post.js"></script>
</body>
</html>