blob: eeac44d37759cf4a506715a12cfb1b22210adf1f [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.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>