3 <title>item(i) vs. [i]
</title>
6 <select id=
"select" style=
"display:none">
7 <option value=
"1">1</option>
9 <script type=
"text/javascript">
10 if (window
.testRunner
)
11 window
.testRunner
.dumpAsText();
12 var sel
= document
.getElementById("select");
13 var bracketZero
= sel
[0];
14 var itemZero
= sel
.item(0);
15 if ( itemZero
== bracketZero
)
16 document
.write("PASS");
18 document
.write("FAIL: item(0) is "+itemZero
);