blob: 299fb3062b3107aa02c1daadef9c9fcb9338c676 [file] [log] [blame]
<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.layoutTestController)
window.layoutTestController.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>