diff options
author | Grant Lanham <contact@grantlanham.com> | 2024-09-10 21:44:30 -0400 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-09-15 15:19:51 +0200 |
commit | 0b832f19bf6590f099c572686d847db7cf7487e9 (patch) | |
tree | 9169eb1b3d530811c577bf1103c89693ac59282f /searx/templates | |
parent | 28dc623785778a39b9f7d73359c4d535e2c2dc5b (diff) | |
download | searxng-0b832f19bf6590f099c572686d847db7cf7487e9.tar.gz searxng-0b832f19bf6590f099c572686d847db7cf7487e9.zip |
[fix] Removes ``/>`` ending tags for void HTML elements
Removes ``/>`` ending tags for void elements [1] and replaces them with ``>``.
Part of the larger cleanup to cleanup invalid HTML throughout the codebase [2].
[1] https://html.spec.whatwg.org/multipage/syntax.html#void-elements
[2] https://github.com/searxng/searxng/issues/3793
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/simple/base.html | 14 | ||||
-rw-r--r-- | searx/templates/simple/categories.html | 2 | ||||
-rw-r--r-- | searx/templates/simple/elements/infobox.html | 2 | ||||
-rw-r--r-- | searx/templates/simple/preferences.html | 6 | ||||
-rw-r--r-- | searx/templates/simple/preferences/cookies.html | 4 | ||||
-rw-r--r-- | searx/templates/simple/preferences/footer.html | 4 | ||||
-rw-r--r-- | searx/templates/simple/result_templates/map.html | 4 | ||||
-rw-r--r-- | searx/templates/simple/results.html | 2 |
8 files changed, 19 insertions, 19 deletions
diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html index ff9b610f6..4aeab383a 100644 --- a/searx/templates/simple/base.html +++ b/searx/templates/simple/base.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html class="no-js theme-{{ preferences.get_value('simple_style') or 'auto' }} center-aligment-{{ preferences.get_value('center_alignment') and 'yes' or 'no' }}" lang="{{ locale_rfc5646 }}" {% if rtl %} dir="rtl"{% endif %}> <head> - <meta charset="UTF-8" /> + <meta charset="UTF-8"> <meta name="description" content="SearXNG — a privacy-respecting, open metasearch engine"> <meta name="keywords" content="SearXNG, search, search engine, metasearch, meta search"> <meta name="generator" content="searxng/{{ searx_version }}"> @@ -13,23 +13,23 @@ <title>{% block title %}{% endblock %}{{ instance_name }}</title> {% block meta %}{% endblock %} {% if rtl %} - <link rel="stylesheet" href="{{ url_for('static', filename='css/searxng-rtl.min.css') }}" type="text/css" media="screen" /> + <link rel="stylesheet" href="{{ url_for('static', filename='css/searxng-rtl.min.css') }}" type="text/css" media="screen"> {% else %} - <link rel="stylesheet" href="{{ url_for('static', filename='css/searxng.min.css') }}" type="text/css" media="screen" /> + <link rel="stylesheet" href="{{ url_for('static', filename='css/searxng.min.css') }}" type="text/css" media="screen"> {% endif %} {% if get_setting('server.limiter') or get_setting('server.public_instance') %} - <link rel="stylesheet" href="{{ url_for('client_token', token=link_token) }}" type="text/css" /> + <link rel="stylesheet" href="{{ url_for('client_token', token=link_token) }}" type="text/css"> {% endif %} {% block styles %}{% endblock %} <!--[if gte IE 9]>--> <script src="{{ url_for('static', filename='js/searxng.head.min.js') }}" client_settings="{{ client_settings }}"></script> <!--<![endif]--> {% block head %} - <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/> + <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"> {% endblock %} <link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}" sizes="any"> <link rel="icon" href="{{ url_for('static', filename='img/favicon.svg') }}" type="image/svg+xml"> - <link rel="apple-touch-icon" href="{{ url_for('static', filename='img/favicon.png') }}"/> + <link rel="apple-touch-icon" href="{{ url_for('static', filename='img/favicon.png') }}"> </head> <body class="{{ endpoint }}_endpoint" > <main id="main_{{ self._TemplateReference__context.name|replace("simple/", "")|replace(".html", "") }}" class="{{body_class}}"> @@ -65,7 +65,7 @@ </main> <footer> <p> - {{ _('Powered by') }} <a href="{{ url_for('info', pagename='about') }}">searxng</a> - {{ searx_version }} — {{ _('a privacy-respecting, open metasearch engine') }}<br/> + {{ _('Powered by') }} <a href="{{ url_for('info', pagename='about') }}">searxng</a> - {{ searx_version }} — {{ _('a privacy-respecting, open metasearch engine') }}<br> <a href="{{ searx_git_url }}">{{ _('Source code') }}</a> | <a href="{{ get_setting('brand.issue_url') }}">{{ _('Issue tracker') }}</a> {% if enable_metrics %}| <a href="{{ url_for('stats') }}">{{ _('Engine stats') }}</a>{% endif %} diff --git a/searx/templates/simple/categories.html b/searx/templates/simple/categories.html index 698c857e9..2bef2f8f6 100644 --- a/searx/templates/simple/categories.html +++ b/searx/templates/simple/categories.html @@ -16,7 +16,7 @@ {%- if not search_on_category_select or not display_tooltip -%} {%- for category in categories -%} <div class="category category_checkbox">{{- '' -}} - <input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}"{% if category in selected_categories %} checked="checked"{% endif %}/> + <input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}"{% if category in selected_categories %} checked="checked"{% endif %}> <label for="checkbox_{{ category|replace(' ', '_') }}" class="tooltips"> {{- icon_big(category_icons[category]) if category in category_icons else icon_big('globe-outline') -}} <div class="category_name">{{- _(category) -}}</div> diff --git a/searx/templates/simple/elements/infobox.html b/searx/templates/simple/elements/infobox.html index 68fd32559..4d75ad802 100644 --- a/searx/templates/simple/elements/infobox.html +++ b/searx/templates/simple/elements/infobox.html @@ -38,7 +38,7 @@ <input type="hidden" name="safesearch" value="{{ safesearch }}"> <input type="hidden" name="theme" value="{{ theme }}"> {%- if timeout_limit -%}<input type="hidden" name="timeout_limit" value="{{ timeout_limit|e }}" >{%- endif -%} - <input type="submit" value="{{ suggestion }}" /> + <input type="submit" value="{{ suggestion }}"> </form> {%- endfor -%} </div> diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 9dab84fd1..5b72d5f9e 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -6,7 +6,7 @@ {%- endmacro -%} {%- macro tab_header(name, id, label, checked) -%} -<input type="radio" name="{{ name }}" id="tab-{{ id }}" {% if checked is sameas true %}checked="checked"{% endif %} /> +<input type="radio" name="{{ name }}" id="tab-{{ id }}" {% if checked is sameas true %}checked="checked"{% endif %}> <label id="tab-label-{{ id }}" for="tab-{{ id }}" role="tab" aria-controls="tab-content-{{ id }}">{{ label }}</label> <section id="tab-content-{{ id }}" role="tabpanel" aria-labelledby="tab-label-{{ id }}" aria-hidden="false"> {%- endmacro -%} @@ -23,7 +23,7 @@ {%- if checked == '?' -%} {{- icon_small('warning') -}} {%- else -%} - <input type="checkbox" {%- if name %} name="{{ name }}" {%- endif %} value="None" {%- if checked %} checked {%- endif -%}{%- if disabled %} disabled {%- endif -%}/> + <input type="checkbox" {%- if name %} name="{{ name }}" {%- endif %} value="None" {%- if checked %} checked {%- endif -%}{%- if disabled %} disabled {%- endif -%}> {%- endif -%} {%- endmacro -%} @@ -33,7 +33,7 @@ id="{{ name }}" {{- ' ' -}} aria-labelledby="pref_{{ name }}"{{- ' ' -}} class="checkbox-onoff reversed-checkbox"{{- ' ' -}} - {%- if checked -%} checked{%- endif -%}/> + {%- if checked -%} checked{%- endif -%}> {%- endmacro -%} {%- macro plugin_preferences(section) -%} diff --git a/searx/templates/simple/preferences/cookies.html b/searx/templates/simple/preferences/cookies.html index b13dc6845..674d68234 100644 --- a/searx/templates/simple/preferences/cookies.html +++ b/searx/templates/simple/preferences/cookies.html @@ -1,7 +1,7 @@ <p class="text-muted"> {{- _('This is the list of cookies and their values SearXNG is storing on your computer.') }} - <br />{{- _('With that list, you can assess SearXNG transparency.') -}} - <br />{{- '' -}} + <br>{{- _('With that list, you can assess SearXNG transparency.') -}} + <br>{{- '' -}} </p> {% if cookies %} <table class="cookies"> diff --git a/searx/templates/simple/preferences/footer.html b/searx/templates/simple/preferences/footer.html index 57a0ddaf8..ec14eb74b 100644 --- a/searx/templates/simple/preferences/footer.html +++ b/searx/templates/simple/preferences/footer.html @@ -1,9 +1,9 @@ <p class="small_font"> {{- _('These settings are stored in your cookies, this allows us not to store this data about you.') -}} - <br />{{- _("These cookies serve your sole convenience, we don't use these cookies to track you.") -}} + <br>{{- _("These cookies serve your sole convenience, we don't use these cookies to track you.") -}} </p>{{- '' -}} -<input type="submit" value="{{ _('Save') }}" />{{- '' -}} +<input type="submit" value="{{ _('Save') }}">{{- '' -}} <div class="{% if rtl %}left{% else %}right{% endif %} preferences_back">{{- '' -}} <a href="{{ url_for('clear_cookies') }}">{{ _('Reset defaults') }}</a>{{- '' -}} diff --git a/searx/templates/simple/result_templates/map.html b/searx/templates/simple/result_templates/map.html index 3bdc378d6..d123137cb 100644 --- a/searx/templates/simple/result_templates/map.html +++ b/searx/templates/simple/result_templates/map.html @@ -18,12 +18,12 @@ <span itemprop="streetAddress"> {%- if result.address.house_number -%}{{- result.address.house_number -}}, {% endif %} {{- result.address.road -}} - </span><br/> + </span><br> {%- endif %} {%- if result.address.locality -%} <span itemprop="addressLocality">{{- result.address.locality -}}</span> {%- if result.address.postcode -%}, <span itemprop="postalCode">{{- result.address.postcode -}}</span>{% endif %} - <br/> + <br> {%- endif -%} {%- if result.address.country -%} <span itemprop="addressCountry">{{- result.address.country -}}</span> diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index 05a21674f..fbc41a17a 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -3,7 +3,7 @@ {% macro engine_data_form(engine_data) -%} {% for engine_name, kv_data in engine_data.items() %} {% for k, v in kv_data.items() %} - <input type="hidden" name="engine_data-{{ engine_name }}-{{ k|e }}" value="{{ v|e }}" /> + <input type="hidden" name="engine_data-{{ engine_name }}-{{ k|e }}" value="{{ v|e }}"> {% endfor %} {% endfor %} {%- endmacro %} |