Skip to content

Commit 4c8c397

Browse files
author
Lars Laade
committed
All: Remove closing slash on empty elements
1 parent 3527d08 commit 4c8c397

22 files changed

+341
-341
lines changed

demo/ajaxSubmit-integration-demo.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>Test for jQuery validate() plugin</title>
6-
<link rel="stylesheet" media="screen" href="css/screen.css" />
6+
<link rel="stylesheet" media="screen" href="css/screen.css">
77
<style>
88
.warning {
99
color: red;
@@ -31,7 +31,7 @@
3131
});
3232

3333
// show a simple loading indicator
34-
var loader = jQuery('<div id="loader"><img src="images/loading.gif" alt="loading..." /></div>')
34+
var loader = jQuery('<div id="loader"><img src="images/loading.gif" alt="loading..."></div>')
3535
.css({
3636
position: "relative",
3737
top: "1em",
@@ -70,19 +70,19 @@ <h1 id="banner"><a href="http://jqueryvalidation.org/">jQuery Validation Plugin<
7070
<legend>Login Form (Enter "foobar" as password)</legend>
7171
<p>
7272
<label for="user">Username</label>
73-
<input id="user" name="user" title="Please enter your username (at least 3 characters)" class="required" minlength="3" />
73+
<input id="user" name="user" title="Please enter your username (at least 3 characters)" class="required" minlength="3">
7474
</p>
7575
<p>
7676
<label for="pass">Password</label>
77-
<input type="password" name="password" id="password" class="required" minlength "5" />
77+
<input type="password" name="password" id="password" class="required" minlength "5">
7878
</p>
7979
<p>
80-
<input class="submit" type="submit" value="Login" />
80+
<input class="submit" type="submit" value="Login">
8181
</p>
8282
</fieldset>
8383
</form>
8484
<div id="result" class="warning">Please login!</div>
85-
<br/>
85+
<br>
8686
<button id="reset">Programmatically reset above form!</button>
8787
<a href="index.html">Back to main page</a>
8888
</div>

demo/captcha/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
<fieldset>
7171
<div id="captchaimage"><a href="<?php echo $_SERVER['PHP_SELF']; ?>" id="refreshimg" title="Click to refresh image"><img src="images/image.php?<?php echo time(); ?>" width="132" height="46" alt="Captcha image" /></a></div>
7272
<label for="captcha">Enter the characters as seen on the image above (case insensitive):</label>
73-
<input type="text" maxlength="6" name="captcha" id="captcha" />
74-
<input type="submit" name="submit" id="submit" value="Check" />
73+
<input type="text" maxlength="6" name="captcha" id="captcha">
74+
<input type="submit" name="submit" id="submit" value="Check">
7575
</fieldset>
7676
</form>
7777
<p>If you can&#39;t decipher the text on the image, click it to dynamically generate a new one.</p>

demo/custom-messages-data-demo.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>jQuery validation plug-in - comment form example</title>
6-
<link rel="stylesheet" media="screen" href="css/screen.css" />
6+
<link rel="stylesheet" media="screen" href="css/screen.css">
77
<script src="../lib/jquery.js"></script>
88
<script src="../dist/jquery.validate.js"></script>
99
<script>
@@ -40,10 +40,10 @@ <h1 id="banner"><a href="http://jqueryvalidation.org/">jQuery Validation Plugin<
4040
<legend>Please enter your email address</legend>
4141
<p>
4242
<label for="cemail">E-Mail *</label>
43-
<input id="cemail" name="email" data-rule-required="true" data-rule-email="true" data-msg-required="Please enter your email address" data-msg-email="Please enter a valid email address" />
43+
<input id="cemail" name="email" data-rule-required="true" data-rule-email="true" data-msg-required="Please enter your email address" data-msg-email="Please enter a valid email address">
4444
</p>
4545
<p>
46-
<input class="submit" type="submit" value="Submit" />
46+
<input class="submit" type="submit" value="Submit">
4747
</p>
4848
</fieldset>
4949
</form>
@@ -53,10 +53,10 @@ <h1 id="banner"><a href="http://jqueryvalidation.org/">jQuery Validation Plugin<
5353
<legend>Please enter your email address</legend>
5454
<p>
5555
<label for="cemail">E-Mail *</label>
56-
<input id="cemail" name="email" data-rule-required="true" data-rule-email="true" data-msg-email="Please enter a valid email address" />
56+
<input id="cemail" name="email" data-rule-required="true" data-rule-email="true" data-msg-email="Please enter a valid email address">
5757
</p>
5858
<p>
59-
<input class="submit" type="submit" value="Submit" />
59+
<input class="submit" type="submit" value="Submit">
6060
</p>
6161
</fieldset>
6262
</form>

demo/custom-methods-demo.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>Test for jQuery validate() plugin</title>
6-
<link rel="stylesheet" media="screen" href="css/screen.css" />
6+
<link rel="stylesheet" media="screen" href="css/screen.css">
77
<script src="../lib/jquery.js"></script>
88
<script src="../dist/jquery.validate.js"></script>
99
<script>
@@ -85,7 +85,7 @@ <h2 id="summary"></h2>
8585
<label for="number">textarea</label>
8686
</td>
8787
<td>
88-
<input id="number" name="number" title="Please enter a number with at least 3 and max 15 characters!" />
88+
<input id="number" name="number" title="Please enter a number with at least 3 and max 15 characters!">
8989
</td>
9090
<td></td>
9191
</tr>
@@ -94,7 +94,7 @@ <h2 id="summary"></h2>
9494
<label for="secret">Secret</label>
9595
</td>
9696
<td>
97-
<input name="secret" id="secret" />
97+
<input name="secret" id="secret">
9898
</td>
9999
<td></td>
100100
</tr>
@@ -103,12 +103,12 @@ <h2 id="summary"></h2>
103103
<label for="math">7 + 4 =</label>
104104
</td>
105105
<td>
106-
<input id="math" name="math" title="Please enter the correct result!" />
106+
<input id="math" name="math" title="Please enter the correct result!">
107107
</td>
108108
<td></td>
109109
</tr>
110110
</table>
111-
<input class="submit" type="submit" value="Submit" />
111+
<input class="submit" type="submit" value="Submit">
112112
</fieldset>
113113
</form>
114114
<h3 id="warning">Your form contains tons of errors! Please try again.</h3>

demo/dynamic-totals.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>jQuery validation plug-in - dynamic forms demo</title>
6-
<link rel="stylesheet" media="screen" href="css/screen.css" />
6+
<link rel="stylesheet" media="screen" href="css/screen.css">
77
<script src="../lib/jquery.js"></script>
88
<script src="../dist/jquery.validate.js"></script>
99
<script>
@@ -101,7 +101,7 @@ <h1 id="banner"><a href="http://jqueryvalidation.org/">jQuery Validation Plugin<
101101
</select>
102102
</td>
103103
<td class='quantity'>
104-
<input size='4' class="quantity" min="1" id="item-quantity-{0}" name="item-quantity-{0}" />
104+
<input size='4' class="quantity" min="1" id="item-quantity-{0}" name="item-quantity-{0}">
105105
</td>
106106
<td class='quantity-error'></td>
107107
</tr>
@@ -119,14 +119,14 @@ <h2 id="summary"></h2>
119119
<label>Totals (max 25)</label>
120120
</td>
121121
<td class="totals">
122-
<input id="totals" name="totals" value="0" max="25" readonly="readonly" size='4' />
122+
<input id="totals" name="totals" value="0" max="25" readonly="readonly" size='4'>
123123
</td>
124124
<td class="totals-error"></td>
125125
</tr>
126126
<tr>
127127
<td colspan="2">&nbsp;</td>
128128
<td>
129-
<input class="submit" type="submit" value="Submit" />
129+
<input class="submit" type="submit" value="Submit">
130130
</td>
131131
</tr>
132132
</tfoot>

demo/errorcontainer-demo.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>Test for jQuery validate() plugin</title>
6-
<link rel="stylesheet" media="screen" href="css/screen.css" />
6+
<link rel="stylesheet" media="screen" href="css/screen.css">
77
<script src="../lib/jquery.js"></script>
88
<script src="../dist/jquery.validate.js"></script>
99
<style>
@@ -80,7 +80,7 @@ <h1 id="banner"><a href="http://jqueryvalidation.org/">jQuery Validation Plugin<
8080
<div class="error">
8181
</div>
8282
<p>
83-
<input class="submit" type="submit" value="Login" />
83+
<input class="submit" type="submit" value="Login">
8484
</p>
8585
</fieldset>
8686
</form>
@@ -138,8 +138,8 @@ <h4>There are serious errors in your form submission, please see below for detai
138138
<input type="checkbox" class="checkbox" id="agree" title="Please agree to our policy!" name="agree" required>
139139
</p>
140140
<p>
141-
<input class="submit" type="submit" value="Submit" />
142-
<input class="cancel" type="submit" value="Cancel" />
141+
<input class="submit" type="submit" value="Submit">
142+
<input class="cancel" type="submit" value="Cancel">
143143
</p>
144144
</fieldset>
145145
</form>

demo/errors-within-labels.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<title>Test for jQuery validate() plugin</title>
66

7-
<link rel="stylesheet" media="screen" href="css/screen.css" />
7+
<link rel="stylesheet" media="screen" href="css/screen.css">
88

99
<script src="../lib/jquery.js"></script>
1010
<script src="../dist/jquery.validate.js"></script>
@@ -70,14 +70,14 @@ <h1 id="banner"><a href="http://jqueryvalidation.org/">jQuery Validation Plugin<
7070
<legend>Login Form</legend>
7171
<p>
7272
<label for="user">Username</label>
73-
<input id="user" name="user" required minlength="3" />
73+
<input id="user" name="user" required minlength="3">
7474
</p>
7575
<p>
7676
<label for="password">Password</label>
77-
<input id="password" type="password" maxlength="12" name="password" required minlength="5" />
77+
<input id="password" type="password" maxlength="12" name="password" required minlength="5">
7878
</p>
7979
<p>
80-
<input class="submit" type="submit" value="Login"/>
80+
<input class="submit" type="submit" value="Login">
8181
</p>
8282
</fieldset>
8383
</form>

demo/file_input.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<meta charset="utf-8">
55
<title>jQuery validation plug-in - comment form example</title>
6-
<link rel="stylesheet" href="css/screen.css" />
7-
<link rel="stylesheet" href="css/cmxform.css" />
6+
<link rel="stylesheet" href="css/screen.css">
7+
<link rel="stylesheet" href="css/cmxform.css">
88
<script src="../lib/jquery.js"></script>
99
<script src="../dist/jquery.validate.js"></script>
1010
<script src="../dist/additional-methods.js"></script>
@@ -20,26 +20,26 @@
2020
<legend>Select the indicated type of files?</legend>
2121
<p>
2222
<label for="file1">Select a plain text file (e.g. *.txt)</label>
23-
<input type="file" id="file1" name="file1" class="required" accept="text/plain" />
23+
<input type="file" id="file1" name="file1" class="required" accept="text/plain">
2424
</p>
2525
<p>
2626
<label for="file2">Select any image file</label>
27-
<input type="file" id="file2" name="file2" class="required" accept="image/*" />
27+
<input type="file" id="file2" name="file2" class="required" accept="image/*">
2828
</p>
2929
<p>
3030
<label for="file3">Select either a PDF or a EPS file</label>
31-
<input type="file" id="file3" name="file3" class="required" accept="image/x-eps,application/pdf" />
31+
<input type="file" id="file3" name="file3" class="required" accept="image/x-eps,application/pdf">
3232
</p>
3333
<p>
3434
<label for="file4">Select any audio or image file</label>
35-
<input type="file" id="file4" name="file4" class="required" accept="image/*,audio/*" />
35+
<input type="file" id="file4" name="file4" class="required" accept="image/*,audio/*">
3636
</p>
3737
<p>
3838
<label for="file5">Select one or more plain text files (e.g. *.txt)</label>
39-
<input type="file" id="file5" name="file5" class="required" multiple accept="text/plain" />
39+
<input type="file" id="file5" name="file5" class="required" multiple accept="text/plain">
4040
</p>
4141
<p>
42-
<input class="submit" type="submit" value="Submit" />
42+
<input class="submit" type="submit" value="Submit">
4343
</p>
4444
</fieldset>
4545
</form>

demo/index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>jQuery validation plug-in - main demo</title>
6-
<link rel="stylesheet" href="css/screen.css" />
6+
<link rel="stylesheet" href="css/screen.css">
77
<script src="../lib/jquery.js"></script>
88
<script src="../dist/jquery.validate.js"></script>
99
<script>
@@ -145,51 +145,51 @@ <h1 id="banner"><a href="http://jqueryvalidation.org/">jQuery Validation Plugin<
145145
<legend>Validating a complete form</legend>
146146
<p>
147147
<label for="firstname">Firstname</label>
148-
<input id="firstname" name="firstname" type="text" />
148+
<input id="firstname" name="firstname" type="text">
149149
</p>
150150
<p>
151151
<label for="lastname">Lastname</label>
152-
<input id="lastname" name="lastname" type="text" />
152+
<input id="lastname" name="lastname" type="text">
153153
</p>
154154
<p>
155155
<label for="username">Username</label>
156-
<input id="username" name="username" type="text" />
156+
<input id="username" name="username" type="text">
157157
</p>
158158
<p>
159159
<label for="password">Password</label>
160-
<input id="password" name="password" type="password" />
160+
<input id="password" name="password" type="password">
161161
</p>
162162
<p>
163163
<label for="confirm_password">Confirm password</label>
164-
<input id="confirm_password" name="confirm_password" type="password" />
164+
<input id="confirm_password" name="confirm_password" type="password">
165165
</p>
166166
<p>
167167
<label for="email">Email</label>
168-
<input id="email" name="email" type="email" />
168+
<input id="email" name="email" type="email">
169169
</p>
170170
<p>
171171
<label for="agree">Please agree to our policy</label>
172-
<input type="checkbox" class="checkbox" id="agree" name="agree" />
172+
<input type="checkbox" class="checkbox" id="agree" name="agree">
173173
</p>
174174
<p>
175175
<label for="newsletter">I'd like to receive the newsletter</label>
176-
<input type="checkbox" class="checkbox" id="newsletter" name="newsletter" />
176+
<input type="checkbox" class="checkbox" id="newsletter" name="newsletter">
177177
</p>
178178
<fieldset id="newsletter_topics">
179179
<legend>Topics (select at least two) - note: would be hidden when newsletter isn't selected, but is visible here for the demo</legend>
180180
<label for="topic_marketflash">
181-
<input type="checkbox" id="topic_marketflash" value="marketflash" name="topic" />Marketflash
181+
<input type="checkbox" id="topic_marketflash" value="marketflash" name="topic">Marketflash
182182
</label>
183183
<label for="topic_fuzz">
184-
<input type="checkbox" id="topic_fuzz" value="fuzz" name="topic" />Latest fuzz
184+
<input type="checkbox" id="topic_fuzz" value="fuzz" name="topic">Latest fuzz
185185
</label>
186186
<label for="topic_digester">
187-
<input type="checkbox" id="topic_digester" value="digester" name="topic" />Mailing list digester
187+
<input type="checkbox" id="topic_digester" value="digester" name="topic">Mailing list digester
188188
</label>
189189
<label for="topic" class="error">Please select at least two topics you'd like to receive.</label>
190190
</fieldset>
191191
<p>
192-
<input class="submit" type="submit" value="Submit" />
192+
<input class="submit" type="submit" value="Submit">
193193
</p>
194194
</fieldset>
195195
</form>

demo/jquerymobile.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<title>My Page</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css" />
7+
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css">
88
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
99
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
1010
<script src="../dist/jquery.validate.js"></script>
@@ -46,13 +46,13 @@ <h1>Welcome</h1>
4646
<form method="GET">
4747
<div data-role="fieldcontain">
4848
<label for="email">Email:</label>
49-
<input type="email" name="email" id="email" />
49+
<input type="email" name="email" id="email">
5050
</div>
5151
<div data-role="fieldcontain">
5252
<label for="password">Password:</label>
53-
<input type="password" name="password" id="password" />
53+
<input type="password" name="password" id="password">
5454
</div>
55-
<input data-role="submit" type="submit" value="Login" />
55+
<input data-role="submit" type="submit" value="Login">
5656
</form>
5757
</div>
5858
</div>

0 commit comments

Comments
 (0)