<html>
<head>
<title>item(i) vs. [i]</title>
</head>
<body>
<select id="select" style="display:none">
	<option value="1">1</option>
</select>
<script type="text/javascript">
if (window.testRunner)
	window.testRunner.dumpAsText();
var sel = document.getElementById("select");
var bracketZero = sel[0];
var itemZero = sel.item(0);
if ( itemZero == bracketZero )
    document.write("PASS");
else
    document.write("FAIL: item(0) is "+itemZero);
</script>
</body>
</html>