2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / dom / array-special-accessors-should-ignore-items.html
blob299fb3062b3107aa02c1daadef9c9fcb9338c676
1 <html>
2 <head>
3 <title>item(i) vs. [i]</title>
4 </head>
5 <body>
6 <select id="select" style="display:none">
7 <option value="1">1</option>
8 </select>
9 <script type="text/javascript">
10 if (window.layoutTestController)
11 window.layoutTestController.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");
17 else
18 document.write("FAIL: item(0) is "+itemZero);
19 </script>
20 </body>
21 </html>