Remove trailing slash from void elements

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2025-03-10 22:14:31 +02:00
parent b46720d880
commit c003548906
4 changed files with 6 additions and 6 deletions

View File

@@ -206,7 +206,7 @@ function initCheckboxRadioStyle() {
chkboxStyle = "primary";
}
var boxsheet = $('<link href="' + getCheckboxURL(chkboxStyle) + '" rel="stylesheet" />');
var boxsheet = $('<link href="' + getCheckboxURL(chkboxStyle) + '" rel="stylesheet">');
// Only add the stylesheet if it's not already present
if ($("link[href='" + boxsheet.attr("href") + "']").length === 0) boxsheet.appendTo("head");

View File

@@ -181,7 +181,7 @@ $(function () {
// MAC + Vendor field if available
if (data.macVendor && data.macVendor.length > 0) {
$("td:eq(1)", row).html(
utils.escapeHtml(data.hwaddr) + "<br/>" + utils.escapeHtml(data.macVendor)
utils.escapeHtml(data.hwaddr) + "<br>" + utils.escapeHtml(data.macVendor)
);
}

View File

@@ -17,9 +17,9 @@
</div>
<div class="pull-left info">
<p>Status</p>
<span id="status"></span><br/>
<span id="query_frequency"></span><br/>
<span id="cpu"></span><br/>
<span id="status"></span><br>
<span id="query_frequency"></span><br>
<span id="cpu"></span><br>
<span id="memory"></span>
</div>
</div>

View File

@@ -194,7 +194,7 @@ mg.include('scripts/lua/settings_header.lp','r')
<div class="col-md-6 col-md-offset-3">
<div id="totp_div" class="has-feedback has-error">
<div class="pwd-field form-group">
<input type="text" size="6" maxlength="6" class="form-control totp_token" id="totp_code" placeholder=""/>
<input type="text" size="6" maxlength="6" class="form-control totp_token" id="totp_code" placeholder="">
</div>
<i class="fa-solid fa-clock-rotate-left pwd-field form-control-feedback"></i>
</div>