Skip to content

Commit 0977ea1

Browse files
committed
Demos:Tests: Avoid self-closing HTML tags
Self-closing tags are reported by newer versions of the htmllint Grunt plugin. They also don't make sense in our HTML files since they are not XHTML-compliant and they run in HTML mode anyway. Ref jquerygh-2157
1 parent f8990e6 commit 0977ea1

File tree

20 files changed

+39
-39
lines changed

20 files changed

+39
-39
lines changed

demos/autocomplete/xml.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747

4848
<div class="ui-widget">
4949
<label for="birds">London matches: </label>
50-
<input id="birds" />
50+
<input id="birds">
5151
</div>
5252

53-
<div class="ui-widget" style="margin-top:2em; font-family:Arial">
53+
<div class="ui-widget" style="margin-top:2em; font-family: Arial, sans-serif">
5454
Result:
5555
<div id="log" style="height: 200px; width: 300px; overflow: auto;" class="ui-widget-content"></div>
5656
</div>

demos/controlgroup/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h1>Controlgroup</h1>
5454
<button>Book Now!</button>
5555
</div>
5656
</fieldset>
57-
<br/>
57+
<br>
5858
<fieldset>
5959
<legend>Rental Car</legend>
6060
<div class="controlgroup-vertical">

demos/controlgroup/splitbutton.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h1>Split button</h1>
3737
<option>Delete</option>
3838
</select>
3939
</div>
40-
<br/>
40+
<br>
4141
<h3>Output:</h3>
4242
<ul class="output"></ul>
4343
</div>

demos/datepicker/alt-field.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</head>
1717
<body>
1818

19-
<p>Date: <input type="text" id="datepicker">&nbsp;<input type="text" id="alternate" size="30"/></p>
19+
<p>Date: <input type="text" id="datepicker">&nbsp;<input type="text" id="alternate" size="30"></p>
2020

2121
<div class="demo-description">
2222
<p>Populate an alternate field with its own date format whenever a date is selected using the <code>altField</code> and <code>altFormat</code> options. This feature could be used to present a human-friendly date for user selection, while passing a more computer-friendly date through for further processing.</p>

demos/datepicker/animation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
</head>
1717
<body>
1818

19-
<p>Date: <input type="text" id="datepicker" size="30"/></p>
19+
<p>Date: <input type="text" id="datepicker" size="30"></p>
2020

21-
<p>Animations:<br />
21+
<p>Animations:<br>
2222
<select id="anim">
2323
<option value="show">Show (default)</option>
2424
<option value="slideDown">Slide down</option>

demos/datepicker/date-formats.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
</head>
1717
<body>
1818

19-
<p>Date: <input type="text" id="datepicker" size="30"/></p>
19+
<p>Date: <input type="text" id="datepicker" size="30"></p>
2020

21-
<p>Format options:<br />
21+
<p>Format options:<br>
2222
<select id="format">
2323
<option value="mm/dd/yy">Default - mm/dd/yy</option>
2424
<option value="yy-mm-dd">ISO 8601 - yy-mm-dd</option>

demos/datepicker/date-range.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
<body>
4343

4444
<label for="from">From</label>
45-
<input type="text" id="from" name="from"/>
45+
<input type="text" id="from" name="from">
4646
<label for="to">to</label>
47-
<input type="text" id="to" name="to"/>
47+
<input type="text" id="to" name="to">
4848

4949
<div class="demo-description">
5050
<p>Select the date range to search for.</p>

demos/datepicker/localization.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818
<body>
1919

20-
<p>Date: <input type="text" id="datepicker"/>&nbsp;
20+
<p>Date: <input type="text" id="datepicker">&nbsp;
2121
<select id="locale">
2222
<option value="ar">Arabic (&#8235;(&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;</option>
2323
<option value="zh-TW">Chinese Traditional (&#32321;&#39636;&#20013;&#25991;)</option>

demos/draggable/snap-to.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<p>I'm a snap target</p>
2727
</div>
2828

29-
<br style="clear:both" />
29+
<br style="clear:both">
3030

3131
<div id="draggable" class="draggable ui-widget-content">
3232
<p>Default (snap: true), snaps to all other draggable elements</p>

demos/droppable/photo-manager.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,25 +139,25 @@
139139
<ul id="gallery" class="gallery ui-helper-reset ui-helper-clearfix">
140140
<li class="ui-widget-content ui-corner-tr">
141141
<h5 class="ui-widget-header">High Tatras</h5>
142-
<img src="images/high_tatras_min.jpg" alt="The peaks of High Tatras" width="96" height="72" />
142+
<img src="images/high_tatras_min.jpg" alt="The peaks of High Tatras" width="96" height="72">
143143
<a href="images/high_tatras.jpg" title="View larger image" class="ui-icon ui-icon-zoomin">View larger</a>
144144
<a href="link/to/trash/script/when/we/have/js/off" title="Delete this image" class="ui-icon ui-icon-trash">Delete image</a>
145145
</li>
146146
<li class="ui-widget-content ui-corner-tr">
147147
<h5 class="ui-widget-header">High Tatras 2</h5>
148-
<img src="images/high_tatras2_min.jpg" alt="The chalet at the Green mountain lake" width="96" height="72" />
148+
<img src="images/high_tatras2_min.jpg" alt="The chalet at the Green mountain lake" width="96" height="72">
149149
<a href="images/high_tatras2.jpg" title="View larger image" class="ui-icon ui-icon-zoomin">View larger</a>
150150
<a href="link/to/trash/script/when/we/have/js/off" title="Delete this image" class="ui-icon ui-icon-trash">Delete image</a>
151151
</li>
152152
<li class="ui-widget-content ui-corner-tr">
153153
<h5 class="ui-widget-header">High Tatras 3</h5>
154-
<img src="images/high_tatras3_min.jpg" alt="Planning the ascent" width="96" height="72" />
154+
<img src="images/high_tatras3_min.jpg" alt="Planning the ascent" width="96" height="72">
155155
<a href="images/high_tatras3.jpg" title="View larger image" class="ui-icon ui-icon-zoomin">View larger</a>
156156
<a href="link/to/trash/script/when/we/have/js/off" title="Delete this image" class="ui-icon ui-icon-trash">Delete image</a>
157157
</li>
158158
<li class="ui-widget-content ui-corner-tr">
159159
<h5 class="ui-widget-header">High Tatras 4</h5>
160-
<img src="images/high_tatras4_min.jpg" alt="On top of Kozi kopka" width="96" height="72" />
160+
<img src="images/high_tatras4_min.jpg" alt="On top of Kozi kopka" width="96" height="72">
161161
<a href="images/high_tatras4.jpg" title="View larger image" class="ui-icon ui-icon-zoomin">View larger</a>
162162
<a href="link/to/trash/script/when/we/have/js/off" title="Delete this image" class="ui-icon ui-icon-trash">Delete image</a>
163163
</li>

demos/slider/range-vertical.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<p>
2626
<label for="amount">Target sales goal (Millions):</label>
27-
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
27+
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
2828
</p>
2929

3030
<div id="slider-range" style="height:250px;"></div>

demos/slider/range.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<p>
2727
<label for="amount">Price range:</label>
28-
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
28+
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
2929
</p>
3030

3131
<div id="slider-range"></div>

demos/slider/rangemax.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<p>
2626
<label for="amount">Minimum number of bedrooms:</label>
27-
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
27+
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
2828
</p>
2929
<div id="slider-range-max"></div>
3030

demos/slider/rangemin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<p>
2626
<label for="amount">Maximum price:</label>
27-
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
27+
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
2828
</p>
2929

3030
<div id="slider-range-min"></div>

demos/slider/slider-vertical.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<p>
2727
<label for="amount">Volume:</label>
28-
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
28+
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
2929
</p>
3030

3131
<div id="slider-vertical" style="height:200px;"></div>

demos/slider/steps.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<p>
2626
<label for="amount">Donation amount ($50 increments):</label>
27-
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
27+
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
2828
</p>
2929

3030
<div id="slider"></div>

demos/spinner/overflow.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<p>
2727
<label for="spinner">Select a value:</label>
28-
<input id="spinner" name="value" />
28+
<input id="spinner" name="value">
2929
</p>
3030

3131
<div class="demo-description">

tests/unit/checkboxradio/checkboxradio.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,37 +43,37 @@
4343
<input type="checkbox" id="check"><label for="check">Toggle</label>
4444
<input type="checkbox" id="check2"><label for="check2">Checkbox</label>
4545
<label for="checkbox-method-refresh" id="checkbox-method-refresh-label">checkbox refresh</label>
46-
<input type="checkbox" id="checkbox-method-refresh"/>
46+
<input type="checkbox" id="checkbox-method-refresh">
4747
<label for="checkbox-method-destroy" class="bar" id="checkbox-method-destroy-label">checkbox refresh</label>
48-
<input type="checkbox" class="foo" id="checkbox-method-destroy"/>
48+
<input type="checkbox" class="foo" id="checkbox-method-destroy">
4949
<label for="checkbox-method-disable">checkbox refresh</label>
50-
<input type="checkbox" class="foo" id="checkbox-method-disable"/>
50+
<input type="checkbox" class="foo" id="checkbox-method-disable">
5151

5252
<label for="radio-method-refresh" id="radio-method-refresh-label">radio refresh</label>
53-
<input type="radio" id="radio-method-refresh"/>
53+
<input type="radio" id="radio-method-refresh">
5454
<label for="radio-method-destroy" class="bar" id="radio-method-destroy-label">radio refresh</label>
55-
<input type="radio" class="foo" id="radio-method-destroy"/>
55+
<input type="radio" class="foo" id="radio-method-destroy">
5656
<label for="radio-method-disable">radio refresh</label>
57-
<input type="radio" class="foo" id="radio-method-disable"/>
57+
<input type="radio" class="foo" id="radio-method-disable">
5858

5959
<label for="checkbox-option-disabled">checkbox disabled</label>
60-
<input type="checkbox" class="foo" id="checkbox-option-disabled"/>
60+
<input type="checkbox" class="foo" id="checkbox-option-disabled">
6161
<label for="checkbox-option-icon">checkbox icon</label>
62-
<input type="checkbox" class="foo" id="checkbox-option-icon"/>
63-
<label for="checkbox-option-label">checkbox label<input type="checkbox" class="foo" id="checkbox-option-label"/></label>
62+
<input type="checkbox" class="foo" id="checkbox-option-icon">
63+
<label for="checkbox-option-label">checkbox label<input type="checkbox" class="foo" id="checkbox-option-label"></label>
6464
<label>
65-
<input type="checkbox" id="label-with-no-for"/>
65+
<input type="checkbox" id="label-with-no-for">
6666
</label>
6767
<label>
68-
<input type="checkbox" id="label-with-no-for-with-html"/>
68+
<input type="checkbox" id="label-with-no-for-with-html">
6969
<strong>Hi</strong>, <em>I'm a label</em>
7070
</label>
7171
<label>
72-
<input type="checkbox" id="label-with-no-for-with-text"/>
72+
<input type="checkbox" id="label-with-no-for-with-text">
7373
Hi, I'm a label
7474
</label>
7575
<label>
76-
<input type="checkbox" id="label-with-no-for-with-html-like-text"/>
76+
<input type="checkbox" id="label-with-no-for-with-html-like-text">
7777
&lt;em&gt;Hi, I'm a label&lt;/em&gt;
7878
</label>
7979

tests/unit/controlgroup/controlgroup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<option>Slow</option>
2121
</select>
2222
<label for="checkbox">Checkbox</label>
23-
<input type="checkbox" value="checkbox" id="checkbox" />
23+
<input type="checkbox" value="checkbox" id="checkbox">
2424
<select>
2525
<option>Fast</option>
2626
<option>Medium</option>

tests/visual/effects/scale.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
<option value="center">center</option>
153153
<option value="right">right</option>
154154
</select>
155-
</label><br />
155+
</label><br>
156156
<label id="current">jQuery UI Scale Animation Test</label>
157157
<button id="cyclePrev">Back</button>
158158
<button id="doAnim">Run Animation</button>

0 commit comments

Comments
 (0)