Missing a var on a for loop, caused a variable to be leaked.
[jquery.git] / test / index.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html">
3 <head>
4         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5         <title>jQuery Test Suite</title>
6         <link rel="Stylesheet" media="screen" href="qunit/testsuite.css" />
7         <style type="text/css" media="screen">
8                 ol#empty { opacity: 0; filter:Alpha(opacity=0); } /* for testing opacity set in styles in IE */
9         </style>
10         <!-- Includes -->
11         <script type="text/javascript">
12                 var jQuery = this.jQuery || "jQuery", // For testing .noConflict()
13                         $ = this.$ || "$",
14                         originaljQuery = jQuery,
15                         original$ = $;
16         </script>
17         <script type="text/javascript" src="../dist/jquery.js"></script>
18         <script type="text/javascript" src="qunit/testrunner.js"></script>
19         <script type="text/javascript" src="data/testrunner.js"></script>
20         <script type="text/javascript" src="unit/core.js"></script>
21         <script type="text/javascript" src="unit/data.js"></script>
22         <script type="text/javascript" src="unit/attributes.js"></script>
23         <script type="text/javascript" src="unit/css.js"></script>
24         <script type="text/javascript" src="unit/traversing.js"></script>
25         <script type="text/javascript" src="unit/manipulation.js"></script>
26         <script type="text/javascript" src="unit/dimensions.js"></script>
27         <script type="text/javascript" src="unit/selector.js"></script>
28         <script type="text/javascript" src="unit/event.js"></script>
29         <script type="text/javascript" src="unit/ajax.js"></script>
30         <script type="text/javascript" src="unit/fx.js"></script>
31         <script type="text/javascript" src="unit/offset.js"></script>
32 </head>
33
34 <body id="body">
35         <h1 id="header">jQuery Test Suite</h1>
36         <h2 id="banner"></h2>
37         <h2 id="userAgent"></h2>
38         
39         <!-- Test HTML -->
40         <div id="nothiddendiv" style="height:1px;background:white;" class="nothiddendiv">
41                 <div id="nothiddendivchild"></div>
42         </div>
43         <!-- this iframe is outside the #main so it won't reload constantly wasting time, but it means the tests must be "safe" and clean up after themselves -->
44         <iframe id="loadediframe" name="loadediframe" style="display:none;" src="data/iframe.html"></iframe>
45         <dl id="dl" style="display:none;">
46         <div id="main" style="display: none;">
47                 <p id="firstp">See <a id="simon1" href="http://simon.incutio.com/archive/2003/03/25/#getElementsBySelector" rel="bookmark">this blog entry</a> for more information.</p>
48                 <p id="ap">
49                         Here are some links in a normal paragraph: <a id="google" href="http://www.google.com/" title="Google!">Google</a>, 
50                         <a id="groups" href="http://groups.google.com/" class="GROUPS">Google Groups (Link)</a>. 
51                         This link has <code><a href="http://smin" id="anchor1">class="blog"</a></code>: 
52                         <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
53
54                 </p>
55                 <div id="foo">
56                         <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
57                         <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
58                         <p id="sap">This link has <code><a href="#2" id="anchor2">class="blog"</a></code>: <a href="http://simon.incutio.com/" class="blog link" id="simon">Simon Willison's Weblog</a></p>
59
60                 </div>
61                 <span id="name+value"></span>
62                 <p id="first">Try them out:</p>
63                 <ul id="firstUL"></ul>
64                 <ol id="empty"></ol>
65                 <form id="form" action="formaction">
66                         <label for="action" id="label-for">Action:</label>
67                         <input type="text" name="action" value="Test" id="text1" maxlength="30"/>
68                         <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
69                         <input type="radio" name="radio1" id="radio1" value="on"/>
70
71                         <input type="radio" name="radio2" id="radio2" checked="checked"/>
72                         <input type="checkbox" name="check" id="check1" checked="checked"/>
73                         <input type="checkbox" id="check2" value="on"/>
74
75                         <input type="hidden" name="hidden" id="hidden1"/>
76                         <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>
77                         
78                         <input type="text" id="name" name="name" value="name" />
79                         <input type="search" id="search" name="search" value="search" />
80                         
81                         <button id="button" name="button" type="button">Button</button>
82                         
83                         <textarea id="area1" maxlength="30">foobar</textarea>
84                         
85                         <select name="select1" id="select1">
86                                 <option id="option1a" class="emptyopt" value="">Nothing</option>
87                                 <option id="option1b" value="1">1</option>
88                                 <option id="option1c" value="2">2</option>
89                                 <option id="option1d" value="3">3</option>
90                         </select>
91                         <select name="select2" id="select2">
92                                 <option id="option2a" class="emptyopt" value="">Nothing</option>
93                                 <option id="option2b" value="1">1</option>
94                                 <option id="option2c" value="2">2</option>
95                                 <option id="option2d" selected="selected" value="3">3</option>
96                         </select>
97                         <select name="select3" id="select3" multiple="multiple">
98                                 <option id="option3a" class="emptyopt" value="">Nothing</option>
99                                 <option id="option3b" selected="selected" value="1">1</option>
100                                 <option id="option3c" selected="selected" value="2">2</option>
101                                 <option id="option3d" value="3">3</option>
102                                 <option id="option3e">no value</option>
103                         </select>
104                         
105                         <object id="object1" codebase="stupid">
106                                 <param name="p1" value="x1" />
107                                 <param name="p2" value="x2" />
108                         </object>
109                         
110                         <span id="台北Táiběi"></span>
111                         <span id="台北" lang="中文"></span>
112                         <span id="utf8class1" class="台北Táiběi 台北"></span>
113                         <span id="utf8class2" class="台北"></span>
114                         <span id="foo:bar" class="foo:bar"></span>
115                         <span id="test.foo[5]bar" class="test.foo[5]bar"></span>
116                         
117                         <foo_bar id="foobar">test element</foo_bar>
118                 </form>
119                 <b id="floatTest">Float test.</b>
120                 <iframe id="iframe" name="iframe"></iframe>
121                 <form id="lengthtest">
122                         <input type="text" id="length" name="test"/>
123                         <input type="text" id="idTest" name="id"/>
124                 </form>
125                 <table id="table"></table>
126
127                 <form id="name-tests">
128                         <!-- Inputs with a grouped name attribute. -->
129                         <input name="types[]" id="types_all" type="checkbox" value="all" />
130                         <input name="types[]" id="types_anime" type="checkbox" value="anime" />
131                         <input name="types[]" id="types_movie" type="checkbox" value="movie" />
132                 </form>
133                 
134                 <form id="testForm" action="#" method="get">
135                         <textarea name="T3" rows="2" cols="15">?
136 Z</textarea>
137                         <input type="hidden" name="H1" value="x" />
138                         <input type="hidden" name="H2" />
139                         <input name="PWD" type="password" value="" />
140                         <input name="T1" type="text" />
141                         <input name="T2" type="text" value="YES" readonly="readonly" />
142                         <input type="checkbox" name="C1" value="1" />
143                         <input type="checkbox" name="C2" />
144                         <input type="radio" name="R1" value="1" />
145                         <input type="radio" name="R1" value="2" />
146                         <input type="text" name="My Name" value="me" />
147                         <input type="reset" name="reset" value="NO" />
148                         <select name="S1">
149                                 <option value="abc">ABC</option>
150                                 <option value="abc">ABC</option>
151                                 <option value="abc">ABC</option>
152                         </select>
153                         <select name="S2" multiple="multiple" size="3">
154                                 <option value="abc">ABC</option>
155                                 <option value="abc">ABC</option>
156                                 <option value="abc">ABC</option>
157                         </select>
158                         <select name="S3">
159                                 <option selected="selected">YES</option>
160                         </select>
161                         <select name="S4">
162                                 <option value="" selected="selected">NO</option>
163                         </select>
164                         <input type="submit" name="sub1" value="NO" />
165                         <input type="submit" name="sub2" value="NO" />
166                         <input type="image" name="sub3" value="NO" />
167                         <button name="sub4" type="submit" value="NO">NO</button>
168                         <input name="D1" type="text" value="NO" disabled="disabled" />
169                         <input type="checkbox" checked="checked" disabled="disabled" name="D2" value="NO" />
170                         <input type="radio" name="D3" value="NO" checked="checked" disabled="disabled" />
171                         <select name="D4" disabled="disabled">
172                                 <option selected="selected" value="NO">NO</option>
173                         </select>
174                 </form>
175                 <div id="moretests">
176                         <form>
177                                 <div id="checkedtest" style="display:none;">
178                                         <input type="radio" name="checkedtestradios" checked="checked"/>
179                                         <input type="radio" name="checkedtestradios" value="on"/>
180                                         <input type="checkbox" name="checkedtestcheckboxes" checked="checked"/>
181                                         <input type="checkbox" name="checkedtestcheckboxes" />
182                                 </div>
183                         </form>
184                         <div id="nonnodes"><span>hi</span> there <!-- mon ami --></div>
185                         <div id="t2037">
186                                 <div><div class="hidden">hidden</div></div>
187                         </div>
188                 </div>
189                 
190                 <div id="tabindex-tests">
191                         <ol id="listWithTabIndex" tabindex="5">
192                                 <li id="foodWithNegativeTabIndex" tabindex="-1">Rice</li>
193                                 <li id="foodNoTabIndex">Beans</li>
194                                 <li>Blinis</li>
195                                 <li>Tofu</li>
196                         </ol>
197                 
198                         <div id="divWithNoTabIndex">I'm hungry. I should...</div>
199                         <span>...</span><a href="#" id="linkWithNoTabIndex">Eat lots of food</a><span>...</span> |
200                         <span>...</span><a href="#" id="linkWithTabIndex" tabindex="2">Eat a little food</a><span>...</span> |
201                         <span>...</span><a href="#" id="linkWithNegativeTabIndex" tabindex="-1">Eat no food</a><span>...</span>
202                         <span>...</span><a id="linkWithNoHrefWithNoTabIndex">Eat a burger</a><span>...</span>
203                         <span>...</span><a id="linkWithNoHrefWithTabIndex" tabindex="1">Eat some funyuns</a><span>...</span>
204                         <span>...</span><a id="linkWithNoHrefWithNegativeTabIndex" tabindex="-1">Eat some funyuns</a><span>...</span>
205                 </div>
206                 
207                 <div id="liveHandlerOrder">
208                         <span id="liveSpan1"><a href="#" id="liveLink1"></a></span>
209                         <span id="liveSpan2"><a href="#" id="liveLink2"></a></span>
210                 </div>
211         </div>
212         </dl>
213         <div id="fx-test-group" style="position:absolute;width:1px;height:1px;overflow:hidden;">
214                 <div id="fx-queue" name="test">
215                         <div id="fadein" class='chain test' name='div'>fadeIn<div>fadeIn</div></div>
216                         <div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>
217                         
218                         <div id="show" class='chain test'>show<div>show</div></div>
219                         <div id="hide" class='chain test out'>hide<div>hide</div></div>
220                         
221                         <div id="togglein" class='chain test'>togglein<div>togglein</div></div>
222                         <div id="toggleout" class='chain test out'>toggleout<div>toggleout</div></div>
223                 
224                         
225                         <div id="slideup" class='chain test'>slideUp<div>slideUp</div></div>
226                         <div id="slidedown" class='chain test out'>slideDown<div>slideDown</div></div>
227                         
228                         <div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</div></div>
229                         <div id="slidetoggleout" class='chain test out'>slideToggleOut<div>slideToggleOut</div></div>
230                 </div>
231                 
232                 <div id="fx-tests"></div>
233         </div>
234         
235         <ol id="tests"></ol>
236 </body>
237 </html>