diff options
author | Markus <markus@venom.fritz.box> | 2024-09-16 15:46:35 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-09-21 15:23:21 +0200 |
commit | 0b3724651eadade974a01902ca2c376a01325f53 (patch) | |
tree | 05438aaa19a75641ea725e44faa26a7be97afbc4 | |
parent | 5ad0214bd42f6615fd0b171a96519ba55d826315 (diff) | |
download | searxng-0b3724651eadade974a01902ca2c376a01325f53.tar.gz searxng-0b3724651eadade974a01902ca2c376a01325f53.zip |
[fix] simple template: drop useless ``aria-labelledby`` attributes
This patch removes the ``aria-labelledby`` attributes for which there is no tag
with the corresponding ID.
Reported-by: @glanham-jr https://github.com/searxng/searxng/issues/3793#issuecomment-2351689483
Signed-off-by: Markus <markus@venom.fritz.box>
-rw-r--r-- | searx/templates/simple/preferences.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index c04d442f2..825a98fe2 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -8,7 +8,7 @@ {%- macro tab_header(name, id, label, checked) -%} <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"> +<section id="tab-content-{{ id }}" role="tabpanel" aria-hidden="false"> {%- endmacro -%} {%- macro tab_footer() -%} @@ -90,7 +90,7 @@ <td class="{{ label }}">{{- '' -}} {%- if stats[engine_name].time != None -%} <span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- '' -}} - <span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true"> + <span class="stacked-bar-chart" aria-hidden="true"> {%- if max_rate95 is not none and max_rate95 > 0 -%} <div class="stacked-bar-chart-median bar{{ (100 * (stats[engine_name].time / max_rate95))|round }}"></div>{{- '' -}} <div class="stacked-bar-chart-rate80 bar{{ (100 * ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95))|round }}"></div>{{- '' -}} @@ -127,7 +127,7 @@ {%- if checker_result or errors -%} <td class="{{ label }} column-reliability">{{- '' -}} <a href="{{ url_for('stats', engine=engine_name|e) }}">{{- '' -}} - <span aria-labelledby="{{engine_name}}_reliability"> + <span> {{- icon_big('warning', 'The engine is not reliabled') }} {{ r -}} </span>{{- '' -}} </a>{{- '' -}} |