Fixed #1039 and #1733 by going through the core API and making them text node and...
[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="data/testsuite.css" />
7         <script>var jQuery = "jQuery", $ = "$"; // For testing .noConflict()</script>
8         <script type="text/javascript" src="../dist/jquery.js"></script>
9         <script type="text/javascript" src="data/testrunner.js"></script>
10         <script type="text/javascript" src="unit/core.js"></script>
11         <script type="text/javascript" src="unit/selector.js"></script>
12         <script type="text/javascript" src="unit/event.js"></script>
13         <script type="text/javascript" src="unit/ajax.js"></script>
14         <script type="text/javascript" src="unit/fx.js"></script>
15 </head>
16
17 <body id="body">
18         <h1 id="header">jQuery Test Suite</h1>
19         <h2 id="banner"></h2>
20         <h2 id="userAgent"></h2>
21         
22         <!-- Test HTML -->
23         <div id="nothiddendiv" style="height:1px;background:white;"></div>
24         <!-- 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 -->
25         <iframe id="loadediframe" name="loadediframe" style="display:none;" src="data/iframe.html"></iframe>
26         <dl id="dl" style="display:none;">
27         <div id="main" style="display: none;">
28                 <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>
29                 <p id="ap">
30                         Here are some links in a normal paragraph: <a id="google" href="http://www.google.com/" title="Google!">Google</a>, 
31                         <a id="groups" href="http://groups.google.com/">Google Groups</a>. 
32                         This link has <code><a href="http://smin" id="anchor1">class="blog"</a></code>: 
33                         <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
34
35                 </p>
36                 <div id="foo">
37                         <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
38                         <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
39                         <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>
40
41                 </div>
42                 <p id="first">Try them out:</p>
43                 <ul id="firstUL"></ul>
44                 <ol id="empty"></ol>
45                 <form id="form" action="formaction">
46                         <input type="text" name="action" value="Test" id="text1" maxlength="30"/>
47                         <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
48                         <input type="radio" name="radio1" id="radio1" value="on"/>
49
50                         <input type="radio" name="radio2" id="radio2" checked="checked"/>
51                         <input type="checkbox" name="check" id="check1" checked="checked"/>
52                         <input type="checkbox" id="check2" value="on"/>
53
54                         <input type="hidden" name="hidden" id="hidden1"/>
55                         <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>
56                         
57                         <input type="text" id="name" name="name" value="name" />
58                         
59                         <button id="button" name="button">Button</button>
60                         
61                         <textarea id="area1" maxlength="30">foobar</textarea>
62                         
63                         <select name="select1" id="select1">
64                                 <option id="option1a" value="">Nothing</option>
65                                 <option id="option1b" value="1">1</option>
66                                 <option id="option1c" value="2">2</option>
67                                 <option id="option1d" value="3">3</option>
68                         </select>
69                         <select name="select2" id="select2">
70                                 <option id="option2a" value="">Nothing</option>
71                                 <option id="option2b" value="1">1</option>
72                                 <option id="option2c" value="2">2</option>
73                                 <option id="option2d" selected="selected" value="3">3</option>
74                         </select>
75                         <select name="select3" id="select3" multiple="multiple">
76                                 <option id="option3a" value="">Nothing</option>
77                                 <option id="option3b" selected="selected" value="1">1</option>
78                                 <option id="option3c" selected="selected" value="2">2</option>
79                                 <option id="option3d" value="3">3</option>
80                         </select>
81                         
82                         <object id="object1" codebase="stupid">
83                                 <param name="p1" value="x1" />
84                                 <param name="p2" value="x2" />
85                         </object>
86                         
87                         <span id="台北Táiběi"></span>
88                         <span id="台北" lang="中文"></span>
89                         <span id="utf8class1" class="台北Táiběi 台北"></span>
90                         <span id="utf8class2" class="台北"></span>
91                         <span id="foo:bar" class="foo:bar"></span>
92                         <span id="test.foo[5]bar" class="test.foo[5]bar"></span>
93                         
94                         <foo_bar id="foobar">test element</foo_bar>
95                 </form>
96                 <b id="floatTest">Float test.</b>
97                 <iframe id="iframe" name="iframe"></iframe>
98                 <form id="lengthtest">
99                         <input type="text" id="length" name="test"/>
100                         <input type="text" id="idTest" name="id"/>
101                 </form>
102                 <table id="table"></table>
103                 
104                 <div id="fx-queue">
105                         <div id="fadein" class='chain test'>fadeIn<div>fadeIn</div></div>
106                         <div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>
107                         
108                         <div id="show" class='chain test'>show<div>show</div></div>
109                         <div id="hide" class='chain test out'>hide<div>hide</div></div>
110                         
111                         <div id="togglein" class='chain test'>togglein<div>togglein</div></div>
112                         <div id="toggleout" class='chain test out'>toggleout<div>toggleout</div></div>
113                 
114                         
115                         <div id="slideup" class='chain test'>slideUp<div>slideUp</div></div>
116                         <div id="slidedown" class='chain test out'>slideDown<div>slideDown</div></div>
117                         
118                         <div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</div></div>
119                         <div id="slidetoggleout" class='chain test out'>slideToggleOut<div>slideToggleOut</div></div>
120                 </div>
121                 
122                 <div id="fx-tests"></div>
123
124                 <form id="testForm" action="#" method="get">
125                         <textarea name="T3" rows="2" cols="15">?
126 Z</textarea>
127                         <input type="hidden" name="H1" value="x" />
128                         <input type="hidden" name="H2" />
129                         <input name="PWD" type="password" value="" />
130                         <input name="T1" type="text" />
131                         <input name="T2" type="text" value="YES" readonly="readonly" />
132                         <input type="checkbox" name="C1" value="1" />
133                         <input type="checkbox" name="C2" />
134                         <input type="radio" name="R1" value="1" />
135                         <input type="radio" name="R1" value="2" />
136                         <input type="text" name="My Name" value="me" />
137                         <input type="reset" name="reset" value="NO" />
138                         <select name="S1">
139                                 <option value="abc">ABC</option>
140                                 <option value="abc">ABC</option>
141                                 <option value="abc">ABC</option>
142                         </select>
143                         <select name="S2" multiple="multiple" size="3">
144                                 <option value="abc">ABC</option>
145                                 <option value="abc">ABC</option>
146                                 <option value="abc">ABC</option>
147                         </select>
148                         <select name="S3">
149                                 <option selected="selected">YES</option>
150                         </select>
151                         <select name="S4">
152                                 <option value="" selected="selected">NO</option>
153                         </select>
154                         <input type="submit" name="sub1" value="NO" />
155                         <input type="submit" name="sub2" value="NO" />
156                         <input type="image" name="sub3" value="NO" />
157                         <button name="sub4" type="submit" value="NO">NO</button>
158                         <input name="D1" type="text" value="NO" disabled="disabled" />
159                         <input type="checkbox" checked="checked" disabled="disabled" name="D2" value="NO" />
160                         <input type="radio" name="D3" value="NO" checked="checked" disabled="disabled" />
161                         <select name="D4" disabled="disabled">
162                                 <option selected="selected" value="NO">NO</option>
163                         </select>
164                 </form>
165                 <div id="moretests">
166                         <form>
167                                 <div id="checkedtest" style="display:none;">
168                                         <input type="radio" name="checkedtestradios" checked="checked"/>
169                                         <input type="radio" name="checkedtestradios" value="on"/>
170                                         <input type="checkbox" name="checkedtestcheckboxes" checked="checked"/>
171                                         <input type="checkbox" name="checkedtestcheckboxes" />
172                                 </div>
173                         </form>
174                         <div id="nonnodes"><span>hi</span> there <!-- mon ami --></div>
175                 </div>
176         </div>
177         </dl>
178         
179         <ol id="tests"></ol>
180 </body>
181 </html>