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>

0 commit comments

Comments
 (0)