blob: 0fb8a9f91fb209c6707af3dd31563e97dd254822 [file] [log] [blame]
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<form id="idf1">
<select id="ids1" name="name1"><option selected>FAILURE</option></select>
<select id="ids1" name="name2"><option selected>FAILURE</option></select>
</form>
<script>
description("Test using id in HTMLFormCollection");
var elems = document.getElementById("idf1").elements;
shouldBe('elems["ids1"][1].getAttribute("name")', '"name2"');
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>