| 2 |
lars |
1 |
<!DOCTYPE html>
|
|
|
2 |
<html id="html">
|
|
|
3 |
<head>
|
|
|
4 |
<meta charset="utf-8">
|
|
|
5 |
<title>jQuery - Validation Test Suite</title>
|
|
|
6 |
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
|
|
|
7 |
<script src="../lib/jquery.js"></script>
|
|
|
8 |
<script src="../lib/jquery.simulate.js"></script>
|
|
|
9 |
<script src="../lib/jquery.form.js"></script>
|
|
|
10 |
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
|
|
|
11 |
<script src="../lib/jquery.mockjax.js"></script>
|
|
|
12 |
<script src="../dist/jquery.validate.js"></script>
|
|
|
13 |
<script src="../dist/additional-methods.js"></script>
|
|
|
14 |
<script src="test.js"></script>
|
|
|
15 |
<script src="rules.js"></script>
|
|
|
16 |
<script src="messages.js"></script>
|
|
|
17 |
<script src="methods.js"></script>
|
|
|
18 |
<script src="additional/cnhBR.js"></script>
|
|
|
19 |
<script src="additional/creditcard.js"></script>
|
|
|
20 |
<script src="additional/netmask.js"></script>
|
|
|
21 |
<script src="additional/abaRoutingNumber.js"></script>
|
|
|
22 |
<script src="aria.js"></script>
|
|
|
23 |
<script src="error-placement.js"></script>
|
|
|
24 |
</head>
|
|
|
25 |
<body id="body">
|
|
|
26 |
<h1 id="qunit-header">
|
|
|
27 |
<a href="http://jqueryvalidation.org/">jQuery Validation Plugin</a> Test Suite
|
|
|
28 |
<a href="?jquery=1.7.2&jquery.mockjax=1.5.3">jQuery 1.7.2</a>
|
|
|
29 |
<a href="?jquery=1.8.3&jquery.mockjax=1.5.3">jQuery 1.8.3</a>
|
|
|
30 |
<a href="?jquery=1.9.1&jquery.mockjax=1.5.3">jQuery 1.9.1</a>
|
|
|
31 |
<a href="?jquery=1.11.1&jquery.mockjax=1.5.3">jQuery 1.11.1</a>
|
|
|
32 |
<a href="?jquery=3.1.1&jquery.mockjax=2.2.1">jQuery 3.1.1</a>
|
|
|
33 |
<a href="?jquery=git&jquery.mockjax=git">jQuery Latest (git)</a>
|
|
|
34 |
</h1>
|
|
|
35 |
<div>
|
|
|
36 |
</div>
|
|
|
37 |
<h2 id="qunit-banner"></h2>
|
|
|
38 |
<div id="qunit-testrunner-toolbar"></div>
|
|
|
39 |
<h2 id="qunit-userAgent"></h2>
|
|
|
40 |
<ol id="qunit-tests"></ol>
|
|
|
41 |
<!-- Test HTML -->
|
|
|
42 |
<div id="other" style="display:none;">
|
|
|
43 |
<input type="password" name="pw1" id="pw1" value="engfeh">
|
|
|
44 |
<input type="password" name="pw2" id="pw2" value="">
|
|
|
45 |
</div>
|
|
|
46 |
<div id="qunit-fixture">
|
|
|
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/">Google Groups</a>. This link has
|
|
|
51 |
<code><a href="#" id="anchor1">class="blog"</a>
|
|
|
52 |
</code>:
|
|
|
53 |
<a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
|
|
|
54 |
</p>
|
|
|
55 |
<div id="foo">
|
|
|
56 |
<p id="sndp">Everything inside the red border is inside a div with
|
|
|
57 |
<code>id="foo"</code>.</p>
|
|
|
58 |
<p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a>
|
|
|
59 |
</p>
|
|
|
60 |
<p id="sap">This link has
|
|
|
61 |
<code><a href="#2" id="anchor2">class="blog"</a>
|
|
|
62 |
</code>: <a href="http://simon.incutio.com/" class="blog link" id="simon">Simon Willison's Weblog</a>
|
|
|
63 |
</p>
|
|
|
64 |
</div>
|
|
|
65 |
<p id="first">Try them out:</p>
|
|
|
66 |
<ul id="firstUL"></ul>
|
|
|
67 |
<ol id="empty"></ol>
|
|
|
68 |
<form id="testForm1">
|
|
|
69 |
<input type="text" data-rule-required="true" data-rule-minlength="2" title="buga" name="firstname" id="firstname">
|
|
|
70 |
<label id="errorFirstname" for="firstname" class="error">error for firstname</label>
|
|
|
71 |
<input type="text" data-rule-required="true" title="buga" name="lastname" id="lastname">
|
|
|
72 |
<input type="text" data-rule-required="true" title="something" name="something" id="something" value="something">
|
|
|
73 |
</form>
|
|
|
74 |
<form id="testForm1clean">
|
|
|
75 |
<input title="buga" name="firstnamec" id="firstnamec">
|
|
|
76 |
<label id="errorFirstnamec" for="firstnamec" class="error">error for firstname</label>
|
|
|
77 |
<input title="buga" name="lastname" id="lastnamec">
|
|
|
78 |
<input name="username" id="usernamec">
|
|
|
79 |
<input id="urlc" type="text" name="urlc">
|
|
|
80 |
</form>
|
|
|
81 |
<form id="userForm">
|
|
|
82 |
<input type="text" data-rule-required="true" name="username" id="username">
|
|
|
83 |
<input type="submit" name="submitButton" value="submitButtonValue">
|
|
|
84 |
</form>
|
|
|
85 |
<form id="signupForm" action="form.php">
|
|
|
86 |
<input id="user" name="user" title="Please enter your username (at least 3 characters)" data-rule-required="true" data-rule-minlength="3">
|
|
|
87 |
<input type="password" name="password" id="password" data-rule-required="true" data-rule-minlength="5">
|
|
|
88 |
</form>
|
|
|
89 |
<form id="testForm2">
|
|
|
90 |
<input data-rule-required="true" type="radio" name="agree" id="agb">
|
|
|
91 |
<label for="agree" id="agreeLabel" class="xerror">error for agb</label>
|
|
|
92 |
</form>
|
|
|
93 |
<form id="testForm3">
|
|
|
94 |
<select data-rule-required="true" name="meal" id="meal">
|
|
|
95 |
<option value="">Please select...</option>
|
|
|
96 |
<option value="1">Food</option>
|
|
|
97 |
<option value="2">Milk</option>
|
|
|
98 |
</select>
|
|
|
99 |
</form>
|
|
|
100 |
<div class="error" id="errorContainer">
|
|
|
101 |
<ul>
|
|
|
102 |
<li class="error" id="errorWrapper">
|
|
|
103 |
<label for="meal" id="mealLabel" class="error">error for meal</label>
|
|
|
104 |
</li>
|
|
|
105 |
</ul>
|
|
|
106 |
</div>
|
|
|
107 |
<form id="testForm4">
|
|
|
108 |
<input data-rule-foo="true" name="f1" id="f1">
|
|
|
109 |
<input data-rule-bar="true" name="f2" id="f2">
|
|
|
110 |
</form>
|
|
|
111 |
<form id="testForm5">
|
|
|
112 |
<input data-rule-equalto="#x2" value="x" name="x1" id="x1">
|
|
|
113 |
<input data-rule-equalto="#x1" value="y" name="x2" id="x2">
|
|
|
114 |
<input data-rule-lessThan="#y2" value="1" name="y1" id="y1">
|
|
|
115 |
<input data-rule-greaterThan="#y1" value="10" name="y2" id="y2">
|
|
|
116 |
<input data-rule-lessThanEqual="#z2" value="10" name="z1" id="z1">
|
|
|
117 |
<input data-rule-greaterThanEqual="#z1" value="10" name="z2" id="z2">
|
|
|
118 |
</form>
|
|
|
119 |
<form id="testForm6">
|
|
|
120 |
<input data-rule-required="true" data-rule-minlength="2" type="checkbox" name="check" id="form6check1">
|
|
|
121 |
<input type="checkbox" name="check" id="form6check2">
|
|
|
122 |
</form>
|
|
|
123 |
<form id="testForm7">
|
|
|
124 |
<select data-rule-required="true" data-rule-minlength="2" name="selectf7" id="selectf7" multiple="multiple">
|
|
|
125 |
<option id="optionxa" value="0">0</option>
|
|
|
126 |
<option id="optionxb" value="1">1</option>
|
|
|
127 |
<option id="optionxc" value="2">2</option>
|
|
|
128 |
<option id="optionxd" value="3">3</option>
|
|
|
129 |
</select>
|
|
|
130 |
</form>
|
|
|
131 |
<form id="dateRangeForm">
|
|
|
132 |
<input id="fromDate" name="fromDate" class="requiredDateRange" value="x">
|
|
|
133 |
<input id="toDate" name="toDate" class="requiredDateRange" value="y">
|
|
|
134 |
<span class="errorContainer"></span>
|
|
|
135 |
</form>
|
|
|
136 |
<form id="testForm8">
|
|
|
137 |
<input id="form8input" data-rule-required="true" data-rule-number="true" data-rule-rangelength="2,8" name="abc">
|
|
|
138 |
<input type="radio" name="radio1">
|
|
|
139 |
</form>
|
|
|
140 |
<form id="testForm9">
|
|
|
141 |
<input id="testEmail9" data-rule-required="true" data-rule-email="true" data-msg-required="required" data-msg-email="email">
|
|
|
142 |
<input id="testGeneric9" data-rule-required="true" data-rule-email="true" data-msg="generic" data-msg-email="email">
|
|
|
143 |
</form>
|
|
|
144 |
<form id="testForm10">
|
|
|
145 |
<input type="radio" name="testForm10Radio" value="1" id="testForm10Radio1">
|
|
|
146 |
<input type="radio" name="testForm10Radio" value="2" id="testForm10Radio2">
|
|
|
147 |
</form>
|
|
|
148 |
<form id="testForm11">
|
|
|
149 |
<!-- HTML5 -->
|
|
|
150 |
<input required type="text" name="testForm11Text" id="testForm11text1">
|
|
|
151 |
</form>
|
|
|
152 |
<form id="testForm12">
|
|
|
153 |
<!-- empty "type" attribute -->
|
|
|
154 |
<input name="testForm12text" id="testForm12text" data-rule-required="true">
|
|
|
155 |
</form>
|
|
|
156 |
<form id="testForm13">
|
|
|
157 |
<select id="cars-select" name="cars" title="Please select at least two cars, but no more than three" required rangelength="[2,3]" multiple="multiple">
|
|
|
158 |
<option value="m_sl">Mercedes SL</option>
|
|
|
159 |
<option value="o_c">Opel Corsa</option>
|
|
|
160 |
<option value="vw_p">VW Polo</option>
|
|
|
161 |
<option value="t_s">Titanic Skoda</option>
|
|
|
162 |
</select>
|
|
|
163 |
</form>
|
|
|
164 |
<form id="testForm14">
|
|
|
165 |
<!-- test existing "label" error holder -->
|
|
|
166 |
<input name="testForm14text" id="testForm14text" data-rule-required="true" data-msg="required">
|
|
|
167 |
<label for="testForm14text" class="error"></label>
|
|
|
168 |
</form>
|
|
|
169 |
<form id="testForm16">
|
|
|
170 |
<!-- test existing "label" attribute -->
|
|
|
171 |
<input name="testForm16text" id="testForm16text" data-rule-required="true" data-msg="missing">
|
|
|
172 |
<label for="testForm16text" class="title">Field Label</label>
|
|
|
173 |
</form>
|
|
|
174 |
<form id="testForm15">
|
|
|
175 |
<!-- test existing non-label error holder -->
|
|
|
176 |
<input name="testForm15text" id="testForm15text" data-rule-required="true" data-msg="required" aria-describedby="testForm15text-error">
|
|
|
177 |
<span id="testForm15text-error" class="error"></span>
|
|
|
178 |
</form>
|
|
|
179 |
<form id="testForm17">
|
|
|
180 |
<!-- test existing non-error aria-describedby -->
|
|
|
181 |
<label for="testForm17text">My Label</label>
|
|
|
182 |
<input name="testForm17text" id="testForm17text" data-rule-required="true" data-msg="required" aria-describedby="testForm17text-description">
|
|
|
183 |
<span id="testForm17text-description">This is where you enter your data</span>
|
|
|
184 |
</form>
|
|
|
185 |
<form id="testForm18">
|
|
|
186 |
<!-- test id/name containing brackets -->
|
|
|
187 |
<input name="testForm18[text]" id="testForm18[text]" required>
|
|
|
188 |
</form>
|
|
|
189 |
<form id="testForm19">
|
|
|
190 |
<!-- test id/name containing $ -->
|
|
|
191 |
<input name="testForm19$text" id="testForm19$text" required>
|
|
|
192 |
</form>
|
|
|
193 |
<form id="dataMessages">
|
|
|
194 |
<input name="dataMessagesName" id="dataMessagesName" class="required" data-msg-required="You must enter a value here">
|
|
|
195 |
</form>
|
|
|
196 |
<div id="simplecontainer">
|
|
|
197 |
<h3></h3>
|
|
|
198 |
</div>
|
|
|
199 |
<div id="container" style="min-height:1px"></div>
|
|
|
200 |
<ol id="labelcontainer"></ol>
|
|
|
201 |
<form id="elementsOrder">
|
|
|
202 |
<select class="required" name="order1" id="order1">
|
|
|
203 |
<option value="">none</option>
|
|
|
204 |
</select>
|
|
|
205 |
<input class="required" name="order2" id="order2">
|
|
|
206 |
<input class="required" name="order3" type="checkbox" id="order3">
|
|
|
207 |
<input class="required" name="order4" id="order4">
|
|
|
208 |
<input class="required" name="order5" type="radio" id="order5">
|
|
|
209 |
<input class="required" name="order6" id="order6">
|
|
|
210 |
<ul id="orderContainer">
|
|
|
211 |
</ul>
|
|
|
212 |
</form>
|
|
|
213 |
<form id="form" action="formaction">
|
|
|
214 |
<input type="text" name="action" value="Test" id="text1">
|
|
|
215 |
<input type="text" name="text2" value="" id="text1b">
|
|
|
216 |
<input type="text" name="text2" value="T " id="text1c">
|
|
|
217 |
<input type="text" name="text2" value="T" id="text2">
|
|
|
218 |
<input type="text" name="text2" value="TestTestTest" id="text3">
|
|
|
219 |
<input type="text" name="action" value="0" id="value1">
|
|
|
220 |
<input type="text" name="text2" value="10" id="value2">
|
|
|
221 |
<input type="text" name="text2" value="1000" id="value3">
|
|
|
222 |
<input type="text" name="text2" value="0.00125" id="value4">
|
|
|
223 |
<input type="radio" name="radio1" id="radio1">
|
|
|
224 |
<input type="radio" name="radio1" id="radio1a">
|
|
|
225 |
<input type="radio" name="radio2" id="radio2" checked="checked">
|
|
|
226 |
<input type="radio" name="radio" id="radio3">
|
|
|
227 |
<input type="radio" name="radio" id="radio4" checked="checked">
|
|
|
228 |
<input type="checkbox" name="check" id="check1" checked="checked">
|
|
|
229 |
<input type="checkbox" name="check" id="check1b">
|
|
|
230 |
<input type="checkbox" name="check2" id="check2">
|
|
|
231 |
<input type="checkbox" name="check3" id="check3" checked="checked">
|
|
|
232 |
<input type="checkbox" name="check3" checked="checked">
|
|
|
233 |
<input type="checkbox" name="check3" checked="checked">
|
|
|
234 |
<input type="checkbox" name="check3" checked="checked">
|
|
|
235 |
<input type="checkbox" name="check3" checked="checked">
|
|
|
236 |
<input type="hidden" name="hidden" id="hidden1">
|
|
|
237 |
<input type="text" style="display:none;" name="foo[bar]" id="hidden2">
|
|
|
238 |
<input type="text" readonly="readonly" id="name" name="name" value="name">
|
|
|
239 |
<input type="button" name="button" value="Click me">
|
|
|
240 |
<button name="button">Button</button>
|
|
|
241 |
<textarea id="area1" name="area1">foobar</textarea>
|
|
|
242 |
<textarea id="area2" name="area2"></textarea>
|
|
|
243 |
<select name="select1" id="select1">
|
|
|
244 |
<option id="option1a" value="">Nothing</option>
|
|
|
245 |
<option id="option1b" value="1">1</option>
|
|
|
246 |
<option id="option1c" value="2">2</option>
|
|
|
247 |
<option id="option1d" value="3">3</option>
|
|
|
248 |
</select>
|
|
|
249 |
<select name="select2" id="select2">
|
|
|
250 |
<option id="option2a" value="">Nothing</option>
|
|
|
251 |
<option id="option2b" value="1">1</option>
|
|
|
252 |
<option id="option2c" value="2">2</option>
|
|
|
253 |
<option id="option2d" selected="selected" value="3">3</option>
|
|
|
254 |
</select>
|
|
|
255 |
<select name="select3" id="select3" multiple="multiple">
|
|
|
256 |
<option id="option3a" value="">Nothing</option>
|
|
|
257 |
<option id="option3b" selected="selected" value="1">1</option>
|
|
|
258 |
<option id="option3c" selected="selected" value="2">2</option>
|
|
|
259 |
<option id="option3d" value="3">3</option>
|
|
|
260 |
</select>
|
|
|
261 |
<select name="select4" id="select4" multiple="multiple">
|
|
|
262 |
<option id="option4a" selected="selected" value="1">1</option>
|
|
|
263 |
<option id="option4b" selected="selected" value="2">2</option>
|
|
|
264 |
<option id="option4c" selected="selected" value="3">3</option>
|
|
|
265 |
<option id="option4d" selected="selected" value="4">4</option>
|
|
|
266 |
<option id="option4e" selected="selected" value="5">5</option>
|
|
|
267 |
</select>
|
|
|
268 |
<select name="select5" id="select5" multiple="multiple">
|
|
|
269 |
<option id="option5a" value="0">0</option>
|
|
|
270 |
<option id="option5b" value="1">1</option>
|
|
|
271 |
<option id="option5c" value="2">2</option>
|
|
|
272 |
<option id="option5d" value="3">3</option>
|
|
|
273 |
</select>
|
|
|
274 |
</form>
|
|
|
275 |
<form id="v2">
|
|
|
276 |
<input id="v2-i1" name="v2-i1" class="required">
|
|
|
277 |
<input id="v2-i2" name="v2-i2" class="required email">
|
|
|
278 |
<input id="v2-i3" name="v2-i3" class="url">
|
|
|
279 |
<input id="v2-i4" name="v2-i4" class="required" minlength="2">
|
|
|
280 |
<input id="v2-i5" name="v2-i5" class="required" minlength="2" maxlength="5" customMethod1="123">
|
|
|
281 |
<input id="v2-i6" name="v2-i6" class="required customMethod2" data-rule-maxlength="5" data-rule-minlength="2">
|
|
|
282 |
<input id="v2-i7" name="v2-i7" data-rule-number data-rule-required>
|
|
|
283 |
<input id="v2-i8" name="v2-i8" data-rule-number="" data-rule-required="">
|
|
|
284 |
<input id="v2-i9" name="v2-i9">
|
|
|
285 |
</form>
|
|
|
286 |
<form id="checkables">
|
|
|
287 |
<input type="checkbox" id="checkable1" name="checkablesgroup" class="required">
|
|
|
288 |
<input type="checkbox" id="checkable2" name="checkablesgroup">
|
|
|
289 |
<input type="checkbox" id="checkable3" name="checkablesgroup">
|
|
|
290 |
</form>
|
|
|
291 |
<form id="subformRequired">
|
|
|
292 |
<div class="billingAddressControl">
|
|
|
293 |
<input type="checkbox" id="bill_to_co" name="bill_to_co" class="toggleCheck" checked="checked" style="width: auto;" tabindex="1">
|
|
|
294 |
<label for="bill_to_co" style="cursor:pointer">Same as Company Address</label>
|
|
|
295 |
</div>
|
|
|
296 |
<div id="subform">
|
|
|
297 |
<input maxlength="40" class="billingRequired" name="bill_first_name" size="20" type="text" tabindex="2" value="">
|
|
|
298 |
</div>
|
|
|
299 |
<input id="co_name" class="required" maxlength="40" name="co_name" size="20" type="text" tabindex="1" value="">
|
|
|
300 |
</form>
|
|
|
301 |
<form id="withTitle">
|
|
|
302 |
<input class="required" name="hastitle" type="text" title="fromtitle">
|
|
|
303 |
</form>
|
|
|
304 |
<form id="ccform" method="get">
|
|
|
305 |
<input id="cardnumber" name="cardnumber">
|
|
|
306 |
</form>
|
|
|
307 |
<form id="productInfo">
|
|
|
308 |
<input class="productInfo" name="partnumber">
|
|
|
309 |
<input class="productInfo" name="description">
|
|
|
310 |
<input class="productInfo" name="color">
|
|
|
311 |
<input name="supplier">
|
|
|
312 |
<input class="productInfo" type="checkbox" name="discount">
|
|
|
313 |
</form>
|
|
|
314 |
<form id="updateLabel">
|
|
|
315 |
<input class="required" name="updateLabelInput" id="updateLabelInput" data-msg-required="You must enter a value here">
|
|
|
316 |
<label id="targetLabel" class="error" for="updateLabelInput">Some server-side error</label>
|
|
|
317 |
</form>
|
|
|
318 |
<form id="rangesMinDateInvalid">
|
|
|
319 |
<input type="date" id="minDateInvalid" name="minDateInvalid" min="2012-12-21" value="2012-11-21">
|
|
|
320 |
</form>
|
|
|
321 |
<form id="ranges">
|
|
|
322 |
<input type="date" id="maxDateInvalid" name="maxDateInvalid" max="2012-12-21" value="2013-01-21">
|
|
|
323 |
<input type="date" id="rangeDateInvalidGreater" name="rangeDateInvalidGreater" min="2012-11-21" max="2013-01-21" value="2013-02-21">
|
|
|
324 |
<input type="date" id="rangeDateInvalidLess" name="rangeDateInvalidLess" min="2012-11-21" max="2013-01-21" value="2012-10-21">
|
|
|
325 |
<input type="date" id="maxDateValid" name="maxDateValid" max="2013-01-21" value="2012-12-21">
|
|
|
326 |
<input type="date" id="rangeDateValid" name="rangeDateValid" min="2012-11-21" max="2013-01-21" value="2012-12-21">
|
|
|
327 |
<!-- input type text is not supposed to have min/max/step according to html5,
|
|
|
328 |
but for backward compatibility with 1.10.0 we treat it as number.
|
|
|
329 |
you can also use type="number", in which case the browser may also
|
|
|
330 |
do validation, and mobile browsers may offer a numeric keypad to edit
|
|
|
331 |
the value.
|
|
|
332 |
Type absent is treated like type="text".
|
|
|
333 |
-->
|
|
|
334 |
<input type="text" id="rangeTextInvalidGreater" name="rangeTextInvalidGreater" min="50" max="200" value="1000">
|
|
|
335 |
<input type="text" id="rangeTextInvalidLess" name="rangeTextInvalidLess" min="200" max="1000" value="50">
|
|
|
336 |
<input type="text" id="rangeTextInvalidStep" name="rangeTextInvalidStep" min="200" max="1000" step="100" value="250">
|
|
|
337 |
<input id="rangeAbsentInvalidGreater" name="rangeAbsentInvalidGreater" min="50" max="200" value="1000">
|
|
|
338 |
<input id="rangeAbsentInvalidLess" name="rangeAbsentInvalidLess" min="200" max="1000" value="50">
|
|
|
339 |
<input id="rangeAbsentInvalidStep" name="rangeAbsentInvalidStep" min="200" max="1000" step="100" value="250">
|
|
|
340 |
<input type="text" id="rangeTextValid" name="rangeTextValid" min="50" max="1000" step="50" value="200">
|
|
|
341 |
<input type="text" id="rangeTextDataRuleValid" name="rangeTextValid" data-rule-min="50" data-rule-max="1000.00" data-rule-step="50.0" value="200">
|
|
|
342 |
<input id="rangeAbsentValid" name="rangeAbsentValid" min="50" max="1000" step="50" value="200">
|
|
|
343 |
<!-- ranges are like numbers in html5, except that browser is not required
|
|
|
344 |
to demand an exact value. User interface could be a slider.
|
|
|
345 |
-->
|
|
|
346 |
<input type="range" id="rangeRangeValid" name="rangeRangeValid" min="50" max="1000" step="50" value="200">
|
|
|
347 |
<input type="number" id="rangeNumberValid" name="rangeNumberValid" min="50" max="1000" value="200">
|
|
|
348 |
<input type="number" id="rangeNumberInvalidGreater" name="rangeNumberInvalidGreater" min="50" max="200" value="1000">
|
|
|
349 |
<input type="number" id="rangeNumberInvalidLess" name="rangeNumberInvalidLess" min="50" max="200" value="6">
|
|
|
350 |
<input type="number" id="rangeMinZeroInvalidLess" name="rangeMinZeroInvalidLess" min="0" value="-1">
|
|
|
351 |
<input type="number" id="rangeMinZeroValidEqual" name="rangeMinZeroValidEqual" min="0" value="0">
|
|
|
352 |
<input type="number" id="rangeMinZeroValidGreater" name="rangeMinZeroValidGreater" min="0" value="1">
|
|
|
353 |
</form>
|
|
|
354 |
<form id="stepOnUnsupportedType">
|
|
|
355 |
<input type="date" id="stepOnUnsupportedTypeInput" name="stepOnUnsupportedTypeInput" step="1">
|
|
|
356 |
</form>
|
|
|
357 |
<form id="rangeMinDateValid">
|
|
|
358 |
<input type="date" id="minDateValid" name="minDateValid" min="2012-11-21" value="2012-12-21">
|
|
|
359 |
</form>
|
|
|
360 |
<form id="bypassValidation">
|
|
|
361 |
<input type="text" name="bypassValidationRequiredInput" required>
|
|
|
362 |
<input id="normalSubmit" type="submit" value="submit">
|
|
|
363 |
<input id="bypassSubmitWithCancel" type="submit" class="cancel" value="bypass1">
|
|
|
364 |
<input id="bypassSubmitWithNoValidate1" type="submit" formnovalidate value="bypass1">
|
|
|
365 |
<input id="bypassSubmitWithNoValidate2" type="submit" formnovalidate="formnovalidate" value="bypass2">
|
|
|
366 |
</form>
|
|
|
367 |
<form id="ariaInvalid">
|
|
|
368 |
<input type="text" name="ariaInvalidFirstName" id="ariaInvalidFirstName">
|
|
|
369 |
</form>
|
|
|
370 |
<form id="ariaRequired">
|
|
|
371 |
<input type="text" name="ariaRequiredDynamic" id="ariaRequiredDynamic">
|
|
|
372 |
<input type="text" name="ariaRequiredStatic" id="ariaRequiredStatic" required="">
|
|
|
373 |
<input type="text" name="ariaRequiredData" id="ariaRequiredData" data-rule-required="true">
|
|
|
374 |
<input type="text" name="ariaRequiredClass" id="ariaRequiredClass" class="required">
|
|
|
375 |
</form>
|
|
|
376 |
<form id="ignoredElements">
|
|
|
377 |
<select id="ss1" class="ignore">
|
|
|
378 |
<option value="1">option 1</option>
|
|
|
379 |
<option value="2">option 2</option>
|
|
|
380 |
</select>
|
|
|
381 |
<br>
|
|
|
382 |
<input name="test" class="required" value="">
|
|
|
383 |
</form>
|
|
|
384 |
<form id="radiocheckbox" autocomplete="off">
|
|
|
385 |
<input id="radiocheckbox-0-1" autocomplete="off" type="radio" name="radiocheckbox-0" required="required">
|
|
|
386 |
<input id="radiocheckbox-0-2" autocomplete="off" type="radio" name="radiocheckbox-0" required="required">
|
|
|
387 |
<input id="radiocheckbox-0-3" autocomplete="off" type="radio" name="radiocheckbox-0" required="required">
|
|
|
388 |
<input id="radiocheckbox-1-1" autocomplete="off" type="checkbox" name="radiocheckbox-1" required="required">
|
|
|
389 |
<input id="radiocheckbox-1-2" autocomplete="off" type="checkbox" name="radiocheckbox-1" required="required">
|
|
|
390 |
<input id="radiocheckbox-1-3" autocomplete="off" type="checkbox" name="radiocheckbox-1" required="required">
|
|
|
391 |
</form>
|
|
|
392 |
<form id="testForm20">
|
|
|
393 |
<!-- test id/name containing single quotes -->
|
|
|
394 |
<input name="testForm20['text input']" id="testForm20['textinput']" required>
|
|
|
395 |
<input type="checkbox" id="testForm20['checkboxinput']" name="testForm20['checkbox input']" required>
|
|
|
396 |
<input type="radio" id="testForm20['radioinput']" name="testForm20['radio input']" required>
|
|
|
397 |
</form>
|
|
|
398 |
<form id="testForm21">
|
|
|
399 |
<label for="testForm21!#$%&'()*+,./:;<=>?@[\]^`{|}~">Input text</label>
|
|
|
400 |
<input type="text" name="testForm21!#$%&'()*+,./:;<=>?@[\]^`{|}~" id="testForm21!#$%&'()*+,./:;<=>?@[\]^`{|}~" required minlength="15">
|
|
|
401 |
</form>
|
|
|
402 |
<form id="testForm22">
|
|
|
403 |
<label for="tF22Input">Input text</label>
|
|
|
404 |
<input type="text" name="tF22Input" id="tF22Input" required minlength="5" data-msg-minlength="You should enter at least {0} characters.">
|
|
|
405 |
</form>
|
|
|
406 |
<form id="contenteditableForm">
|
|
|
407 |
<div contenteditable id="contenteditableNumberInvalid" data-rule-number="true" name="field1">ABC</div>
|
|
|
408 |
<div contenteditable id="contenteditableNumberValid" data-rule-number="true" name="field2">123</div>
|
|
|
409 |
<div contenteditable id="contenteditableRequiredInvalid" data-rule-required="true" name="field3"></div>
|
|
|
410 |
<div contenteditable id="contenteditableRequiredValid" data-rule-required="true" name="field3">Some text</div>
|
|
|
411 |
<input id="contenteditableInput" type="text" data-rule-number="true" name="field4" value="ABC" />
|
|
|
412 |
</form>
|
|
|
413 |
<form id="testForm23">
|
|
|
414 |
<input name="box1" id="box1" type="text" value="" />
|
|
|
415 |
<input name="box2" id="box2" type="text" value="" />
|
|
|
416 |
</form>
|
|
|
417 |
<form id="testForm24">
|
|
|
418 |
<input id="val1" type="hidden" name="val1" value="hello" />
|
|
|
419 |
<input id="val2" type="text" name="val2" value="" />
|
|
|
420 |
<input id="val3" type="text" name="val3" value="" />
|
|
|
421 |
</form>
|
|
|
422 |
<form id="add-method-remote">
|
|
|
423 |
<input id="add-method-username" type="text" name="username" value="" data-rule-workemail="somevalue" required />
|
|
|
424 |
</form>
|
|
|
425 |
<form id="testForm25">
|
|
|
426 |
<input type="text" data-rule-required="true" title="something25" name="something25" id="something25" value="">
|
|
|
427 |
</form>
|
|
|
428 |
<form id="testForm26">
|
|
|
429 |
<select name="day" class="required">
|
|
|
430 |
<option value="">day</option>
|
|
|
431 |
<option value="1">1</option>
|
|
|
432 |
<option value="2">2</option>
|
|
|
433 |
</select>
|
|
|
434 |
<br>
|
|
|
435 |
<select name="month" class="required">
|
|
|
436 |
<option value="">month</option>
|
|
|
437 |
<option value="1">1</option>
|
|
|
438 |
<option value="2">2</option>
|
|
|
439 |
</select>
|
|
|
440 |
<br>
|
|
|
441 |
<select name="year" class="required">
|
|
|
442 |
<option value="">year</option>
|
|
|
443 |
<option value="2015">2015</option>
|
|
|
444 |
<option value="2016">2016</option>
|
|
|
445 |
</select>
|
|
|
446 |
</form>
|
|
|
447 |
<form id="testForm27">
|
|
|
448 |
<input name="year"/>
|
|
|
449 |
<button name="submitForm27" value="someValue" type="submit"><span>Submit</span></button>
|
|
|
450 |
</form>
|
|
|
451 |
|
|
|
452 |
<form id="cnhFormTest">
|
|
|
453 |
<input id="cnhnumber" name="cnhnumber" required>
|
|
|
454 |
<button name="submitFormCnh" value="submitFormCnh" type="submit"><span>Submit</span></button>
|
|
|
455 |
</form>
|
|
|
456 |
|
|
|
457 |
<form id="_contenteditableForm">
|
|
|
458 |
<div name="first_name" id="first_name" contenteditable placeholder="First Name"></div>
|
|
|
459 |
<br>
|
|
|
460 |
<input type="text" name="something" id="_something" />
|
|
|
461 |
</form>
|
|
|
462 |
<form id="testForm28">
|
|
|
463 |
<input type="text" name="f28input" required>
|
|
|
464 |
</form>
|
|
|
465 |
</div>
|
|
|
466 |
</body>
|
|
|
467 |
</html>
|