Browse Source

Multiple HTML corrections

Alt on favicon
Width of image should be 400 and not 400px
Correct alt+title on image
No <p> contains <p>
Cqoicebordel 10 years ago
parent
commit
a809fd1bbb
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      searx/templates/courgette/result_templates/videos.html

+ 2
- 4
searx/templates/courgette/result_templates/videos.html View File

1
 <div class="result">
1
 <div class="result">
2
   {% if result['favicon'] %}
2
   {% if result['favicon'] %}
3
-    <img width="14" height="14" class="favicon" src="static/{{theme}}/img/icon_{{result['favicon']}}.ico" />
3
+    <img width="14" height="14" class="favicon" src="static/{{theme}}/img/icon_{{result['favicon']}}.ico" alt="{{result['favicon']}}" />
4
   {% endif %}
4
   {% endif %}
5
 
5
 
6
-    <p>
7
       <h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
6
       <h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
8
       {% if result.publishedDate %}<p class="published_date">{{ result.publishedDate }}</p>{% endif %}
7
       {% if result.publishedDate %}<p class="published_date">{{ result.publishedDate }}</p>{% endif %}
9
-      <a href="{{ result.url }}"><img width="400px" src="{{ result.thumbnail }}" title={{ result.title }} alt=" {{ result.title }}"/></a>
8
+      <a href="{{ result.url }}"><img width="400" src="{{ result.thumbnail }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/></a>
10
       <p class="url">{{ result.url }}</p>
9
       <p class="url">{{ result.url }}</p>
11
-    </p>
12
 </div>
10
 </div>