]> source.dussan.org Git - jquery-ui.git/commitdiff
Demos:Tests: Avoid self-closing HTML tags
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 28 Mar 2023 22:18:07 +0000 (00:18 +0200)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 10 May 2023 08:53:57 +0000 (10:53 +0200)
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 gh-2157

20 files changed:
demos/autocomplete/xml.html
demos/controlgroup/default.html
demos/controlgroup/splitbutton.html
demos/datepicker/alt-field.html
demos/datepicker/animation.html
demos/datepicker/date-formats.html
demos/datepicker/date-range.html
demos/datepicker/localization.html
demos/draggable/snap-to.html
demos/droppable/photo-manager.html
demos/slider/range-vertical.html
demos/slider/range.html
demos/slider/rangemax.html
demos/slider/rangemin.html
demos/slider/slider-vertical.html
demos/slider/steps.html
demos/spinner/overflow.html
tests/unit/checkboxradio/checkboxradio.html
tests/unit/controlgroup/controlgroup.html
tests/visual/effects/scale.html

index d86ca156355ceb4078a3ae05e9f8c46a06bc2e74..47e70793d7e71764a18932f551953a5dc96a13c4 100644 (file)
 
 <div class="ui-widget">
        <label for="birds">London matches: </label>
-       <input id="birds" />
+       <input id="birds">
 </div>
 
-<div class="ui-widget" style="margin-top:2em; font-family:Arial">
+<div class="ui-widget" style="margin-top:2em; font-family: Arial, sans-serif">
        Result:
        <div id="log" style="height: 200px; width: 300px; overflow: auto;" class="ui-widget-content"></div>
 </div>
index 12e1a9af142274ebff82ee01cbf87b5739f77d7c..71418302ac0cd07a5e08ac6b6e0fe5656b5c4864 100644 (file)
@@ -54,7 +54,7 @@
                        <button>Book Now!</button>
                </div>
        </fieldset>
-       <br/>
+       <br>
        <fieldset>
                <legend>Rental Car</legend>
                <div class="controlgroup-vertical">
index 27f9498160a689e205ede88a9b4d9a4c347510a3..ea3a95e02fd220342af95d3a3f44e41360ef518d 100644 (file)
@@ -37,7 +37,7 @@
                        <option>Delete</option>
                </select>
        </div>
-       <br/>
+       <br>
        <h3>Output:</h3>
        <ul class="output"></ul>
 </div>
index 77932571944c7af3866e8f5e624d8c95e76cc999..be00e0d7372e12795599f70968b08f1276e5ffea 100644 (file)
@@ -16,7 +16,7 @@
 </head>
 <body>
 
-<p>Date: <input type="text" id="datepicker">&nbsp;<input type="text" id="alternate" size="30"/></p>
+<p>Date: <input type="text" id="datepicker">&nbsp;<input type="text" id="alternate" size="30"></p>
 
 <div class="demo-description">
 <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>
index 7daf4bc6ce7498582f5322caf93caa36cdb29005..9f20632e3adc1536470ca0cbd8cddb5566c646ff 100644 (file)
@@ -16,9 +16,9 @@
 </head>
 <body>
 
-<p>Date: <input type="text" id="datepicker" size="30"/></p>
+<p>Date: <input type="text" id="datepicker" size="30"></p>
 
-<p>Animations:<br />
+<p>Animations:<br>
        <select id="anim">
                <option value="show">Show (default)</option>
                <option value="slideDown">Slide down</option>
index 5e738b4ab5ed6e89be6fdc2cb2c8730f436f79f4..1736fabd99b2efa48474c928f836fba67acbc97f 100644 (file)
@@ -16,9 +16,9 @@
 </head>
 <body>
 
-<p>Date: <input type="text" id="datepicker" size="30"/></p>
+<p>Date: <input type="text" id="datepicker" size="30"></p>
 
-<p>Format options:<br />
+<p>Format options:<br>
        <select id="format">
                <option value="mm/dd/yy">Default - mm/dd/yy</option>
                <option value="yy-mm-dd">ISO 8601 - yy-mm-dd</option>
index 17581e1eb7d19a61c8f7ce6c47cb57067aa237c5..e3cc202456cc571713c4e6484e887fb9b2b1e8df 100644 (file)
@@ -42,9 +42,9 @@
 <body>
 
 <label for="from">From</label>
-<input type="text" id="from" name="from"/>
+<input type="text" id="from" name="from">
 <label for="to">to</label>
-<input type="text" id="to" name="to"/>
+<input type="text" id="to" name="to">
 
 <div class="demo-description">
 <p>Select the date range to search for.</p>
index 69835931a4989092985705107f00de5f4d02e9fc..5e9a6cfaf53109cde7303f6acfd17919a80a6ae6 100644 (file)
@@ -17,7 +17,7 @@
 </head>
 <body>
 
-<p>Date: <input type="text" id="datepicker"/>&nbsp;
+<p>Date: <input type="text" id="datepicker">&nbsp;
        <select id="locale">
                <option value="ar">Arabic (&#8235;(&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;</option>
                <option value="zh-TW">Chinese Traditional (&#32321;&#39636;&#20013;&#25991;)</option>
index 38abe5ea3d8cdcd7c7de3565606323ff72fb9be9..a08cdd10a4d6601394072f4b6bc29494b4ee6b93 100644 (file)
@@ -26,7 +26,7 @@
        <p>I'm a snap target</p>
 </div>
 
-<br style="clear:both" />
+<br style="clear:both">
 
 <div id="draggable" class="draggable ui-widget-content">
        <p>Default (snap: true), snaps to all other draggable elements</p>
index 25bf24f3b3faf5e2fbd27c4a10d4c9284414e3b9..ba3eedfb3062d175d7c521a07de708bd959b4310 100644 (file)
 <ul id="gallery" class="gallery ui-helper-reset ui-helper-clearfix">
        <li class="ui-widget-content ui-corner-tr">
                <h5 class="ui-widget-header">High Tatras</h5>
-               <img src="images/high_tatras_min.jpg" alt="The peaks of High Tatras" width="96" height="72" />
+               <img src="images/high_tatras_min.jpg" alt="The peaks of High Tatras" width="96" height="72">
                <a href="images/high_tatras.jpg" title="View larger image" class="ui-icon ui-icon-zoomin">View larger</a>
                <a href="link/to/trash/script/when/we/have/js/off" title="Delete this image" class="ui-icon ui-icon-trash">Delete image</a>
        </li>
        <li class="ui-widget-content ui-corner-tr">
                <h5 class="ui-widget-header">High Tatras 2</h5>
-               <img src="images/high_tatras2_min.jpg" alt="The chalet at the Green mountain lake" width="96" height="72" />
+               <img src="images/high_tatras2_min.jpg" alt="The chalet at the Green mountain lake" width="96" height="72">
                <a href="images/high_tatras2.jpg" title="View larger image" class="ui-icon ui-icon-zoomin">View larger</a>
                <a href="link/to/trash/script/when/we/have/js/off" title="Delete this image" class="ui-icon ui-icon-trash">Delete image</a>
        </li>
        <li class="ui-widget-content ui-corner-tr">
                <h5 class="ui-widget-header">High Tatras 3</h5>
-               <img src="images/high_tatras3_min.jpg" alt="Planning the ascent" width="96" height="72" />
+               <img src="images/high_tatras3_min.jpg" alt="Planning the ascent" width="96" height="72">
                <a href="images/high_tatras3.jpg" title="View larger image" class="ui-icon ui-icon-zoomin">View larger</a>
                <a href="link/to/trash/script/when/we/have/js/off" title="Delete this image" class="ui-icon ui-icon-trash">Delete image</a>
        </li>
        <li class="ui-widget-content ui-corner-tr">
                <h5 class="ui-widget-header">High Tatras 4</h5>
-               <img src="images/high_tatras4_min.jpg" alt="On top of Kozi kopka" width="96" height="72" />
+               <img src="images/high_tatras4_min.jpg" alt="On top of Kozi kopka" width="96" height="72">
                <a href="images/high_tatras4.jpg" title="View larger image" class="ui-icon ui-icon-zoomin">View larger</a>
                <a href="link/to/trash/script/when/we/have/js/off" title="Delete this image" class="ui-icon ui-icon-trash">Delete image</a>
        </li>
index b8c3b1e24ebc986d6932876bc3eb8318d68b79c1..0d75b8ae90c7427848557ed18b1c0e7e77317b5c 100644 (file)
@@ -24,7 +24,7 @@
 
 <p>
        <label for="amount">Target sales goal (Millions):</label>
-       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
+       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
 </p>
 
 <div id="slider-range" style="height:250px;"></div>
index 646b1d9030afa261847461f283a5edc1e3929846..162ff064b96e9a5f7be92d933b2d5e7d0ca91969 100644 (file)
@@ -25,7 +25,7 @@
 
 <p>
        <label for="amount">Price range:</label>
-       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
+       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
 </p>
 
 <div id="slider-range"></div>
index a98592d318760b3841f53067c2b2a5c2410f6825..1c7793b161fc2efadce36d35118b16f81f41d085 100644 (file)
@@ -24,7 +24,7 @@
 
 <p>
        <label for="amount">Minimum number of bedrooms:</label>
-       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
+       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
 </p>
 <div id="slider-range-max"></div>
 
index 95d7516e5751f5a017ec22c58775532939655cd5..e864a220e7ec2a1d0f43bfad4390328d997b7da3 100644 (file)
@@ -24,7 +24,7 @@
 
 <p>
        <label for="amount">Maximum price:</label>
-       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
+       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
 </p>
 
 <div id="slider-range-min"></div>
index 00014f635ba481511fd9a24c7eba52f2b4584392..1b32619a07c23e8b350a8b2ce5f25598c7177272 100644 (file)
@@ -25,7 +25,7 @@
 
 <p>
        <label for="amount">Volume:</label>
-       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
+       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
 </p>
 
 <div id="slider-vertical" style="height:200px;"></div>
index 9f8b680930866442673702c16071689d6b85afea..cc76eb26ac11011711a9a913d916dfc950d53ee3 100644 (file)
@@ -24,7 +24,7 @@
 
 <p>
        <label for="amount">Donation amount ($50 increments):</label>
-       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;" />
+       <input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;">
 </p>
 
 <div id="slider"></div>
index 9908a3442b81f6831ad498f9bf0d9ef58cb698f7..1def62da0530ebeeda0b6f48a7c877ec764a70a3 100644 (file)
@@ -25,7 +25,7 @@
 
 <p>
        <label for="spinner">Select a value:</label>
-       <input id="spinner" name="value" />
+       <input id="spinner" name="value">
 </p>
 
 <div class="demo-description">
index 62552fefceaf3a176033dfd410ad8a01814ec7fd..536d4ec55c55fd3fcd144f86b2fc741c12d8a742 100644 (file)
 <input type="checkbox" id="check"><label for="check">Toggle</label>
 <input type="checkbox" id="check2"><label for="check2">Checkbox</label>
 <label for="checkbox-method-refresh" id="checkbox-method-refresh-label">checkbox refresh</label>
-<input type="checkbox" id="checkbox-method-refresh"/>
+<input type="checkbox" id="checkbox-method-refresh">
 <label for="checkbox-method-destroy" class="bar" id="checkbox-method-destroy-label">checkbox refresh</label>
-<input type="checkbox" class="foo" id="checkbox-method-destroy"/>
+<input type="checkbox" class="foo" id="checkbox-method-destroy">
 <label for="checkbox-method-disable">checkbox refresh</label>
-<input type="checkbox" class="foo" id="checkbox-method-disable"/>
+<input type="checkbox" class="foo" id="checkbox-method-disable">
 
 <label for="radio-method-refresh" id="radio-method-refresh-label">radio refresh</label>
-<input type="radio" id="radio-method-refresh"/>
+<input type="radio" id="radio-method-refresh">
 <label for="radio-method-destroy" class="bar" id="radio-method-destroy-label">radio refresh</label>
-<input type="radio" class="foo" id="radio-method-destroy"/>
+<input type="radio" class="foo" id="radio-method-destroy">
 <label for="radio-method-disable">radio refresh</label>
-<input type="radio" class="foo" id="radio-method-disable"/>
+<input type="radio" class="foo" id="radio-method-disable">
 
 <label for="checkbox-option-disabled">checkbox disabled</label>
-<input type="checkbox" class="foo" id="checkbox-option-disabled"/>
+<input type="checkbox" class="foo" id="checkbox-option-disabled">
 <label for="checkbox-option-icon">checkbox icon</label>
-<input type="checkbox" class="foo" id="checkbox-option-icon"/>
-<label for="checkbox-option-label">checkbox label<input type="checkbox" class="foo" id="checkbox-option-label"/></label>
+<input type="checkbox" class="foo" id="checkbox-option-icon">
+<label for="checkbox-option-label">checkbox label<input type="checkbox" class="foo" id="checkbox-option-label"></label>
 <label>
-       <input type="checkbox" id="label-with-no-for"/>
+       <input type="checkbox" id="label-with-no-for">
 </label>
 <label>
-       <input type="checkbox" id="label-with-no-for-with-html"/>
+       <input type="checkbox" id="label-with-no-for-with-html">
        <strong>Hi</strong>, <em>I'm a label</em>
 </label>
 <label>
-       <input type="checkbox" id="label-with-no-for-with-text"/>
+       <input type="checkbox" id="label-with-no-for-with-text">
        Hi, I'm a label
 </label>
 <label>
-       <input type="checkbox" id="label-with-no-for-with-html-like-text"/>
+       <input type="checkbox" id="label-with-no-for-with-html-like-text">
        &lt;em&gt;Hi, I'm a label&lt;/em&gt;
 </label>
 
index db1d47808f70628f12c91fa2062d3c709260f4ec..41b642401ba5d2082778f1d4182c1a236881b09a 100644 (file)
@@ -20,7 +20,7 @@
                        <option>Slow</option>
                </select>
                <label for="checkbox">Checkbox</label>
-               <input type="checkbox" value="checkbox" id="checkbox" />
+               <input type="checkbox" value="checkbox" id="checkbox">
                <select>
                        <option>Fast</option>
                        <option>Medium</option>
index b032ac896f4a4eb8c59faa80043f8e342f3e5823..1d5a5bbfa9e7f06f650c43296d346b2fc3554d9b 100644 (file)
                                <option value="center">center</option>
                                <option value="right">right</option>
                        </select>
-               </label><br />
+               </label><br>
                <label id="current">jQuery UI Scale Animation Test</label>
                <button id="cyclePrev">Back</button>
                <button id="doAnim">Run Animation</button>