Skip to content

Commit e0cf95a

Browse files
authored
Merge pull request #1706 from UlrichB22/html5val_01
Remove the trailing slash from void elements to comply with ...
2 parents ed17d53 + 8d198fa commit e0cf95a

23 files changed

+52
-52
lines changed

src/moin/apps/admin/templates/admin/userbrowser.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ <h1>{{ _("Users") }}</h1>
2929
</td>
3030
<td>
3131
<form action="{{ url_for('admin.userprofile', user_name=u.name[0]) }}" method="POST">
32-
<input type="hidden" name="key" value="disabled" />
33-
<input type="hidden" name="val" value="{{ u.disabled and "0" or "1" }}" />
32+
<input type="hidden" name="key" value="disabled">
33+
<input type="hidden" name="val" value="{{ u.disabled and "0" or "1" }}">
3434
{%- set cls = "fa-solid fa-user-plus fa-lg moin-button-less" if u.disabled else "fa fa-user-times fa-lg moin-button-less" %}
3535
{%- set title = _("Enable user") if u.disabled else _("Disable user") %}
3636
<button type="submit" class="{{ cls }}" title="{{ title }}">&nbsp;
@@ -39,7 +39,7 @@ <h1>{{ _("Users") }}</h1>
3939
</td>
4040
<td>
4141
<form action="{{ url_for('admin.mail_recovery_token') }}" method="POST">
42-
<input type="hidden" name="username" value="{{ u.name[0] }}" />
42+
<input type="hidden" name="username" value="{{ u.name[0] }}">
4343
<button type="submit" class="fa fa-envelope fa-lg moin-button-less" title="{{ _('Mail password reset') }}">&nbsp;
4444
</button>
4545
</form>

src/moin/templates/atom.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
{%- if get == 'xml' -%}
1919
<?xml-stylesheet type="text/xsl" href="{{ theme_static('atom.xslt') }}"?>
2020
{%- elif get == 'comment_cont_merge' -%}
21-
<p style="font-size: 1.2em">…{{ comment }}</p> <br /> {{ content }}
21+
<p style="font-size: 1.2em">…{{ comment }}</p> <br> {{ content }}
2222
{%- elif get == 'first_revision' -%}
2323
{{ content }}
24-
<br />
24+
<br>
2525
<table class="moin-diff">
2626
<tr>
2727
<td class="moin-diff-header" style="width: 100%;">
@@ -32,7 +32,7 @@
3232
{{ atom_style() }}
3333
{%- elif get == 'binary' -%}
3434
{{ content }}
35-
<br />
35+
<br>
3636
<table class="moin-diff">
3737
<tr>
3838
<td class="moin-diff-header" style="width: 50%;">

src/moin/templates/base.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
<head>
1616
{%- block head %}
1717
{%- block head_meta %}
18-
<meta charset="utf-8" />{# must be at the beginning #}
19-
<meta name="viewport" content="width=device-width, initial-scale=1" />
18+
<meta charset="utf-8">{# must be at the beginning #}
19+
<meta name="viewport" content="width=device-width, initial-scale=1">
2020
{%- if pi_refresh -%}
21-
{{ '<meta http-equiv="refresh" content="%d;URL=%s" />' % pi_refresh }}
21+
{{ '<meta http-equiv="refresh" content="%d;URL=%s">' % pi_refresh }}
2222
{%- endif %}
2323
{%- if html_head_meta %}
2424
{%- for name, content in html_head_meta.items() %}
25-
<meta name="{{ name }}" content="{{ content }}" />
25+
<meta name="{{ name }}" content="{{ content }}">
2626
{%- endfor %}
2727
{%- endif %}
2828
{%- endblock -%}
@@ -52,19 +52,19 @@
5252
{{ favicon }}
5353

5454
{%- block theme_stylesheets %}
55-
<link media="all" rel="stylesheet" href="{{ url_for('static', filename='css/normalize.css') }}" />
56-
<link media="all" rel="stylesheet" href="{{ url_for('static', filename='css/variables.css') }}" />
55+
<link media="all" rel="stylesheet" href="{{ url_for('static', filename='css/normalize.css') }}">
56+
<link media="all" rel="stylesheet" href="{{ url_for('static', filename='css/variables.css') }}">
5757
{%- if theme_supp.variables_css() %}
58-
<link media="all" rel="stylesheet" href="{{ theme_static('css/variables.css') }}" />
58+
<link media="all" rel="stylesheet" href="{{ theme_static('css/variables.css') }}">
5959
{%- endif %}
60-
<link media="all" rel="stylesheet" href="{{ url_for('serve.files', name='pygments', filename='css/colorful.css') }}" />
61-
<link media="all" rel="stylesheet" href="{{ url_for('serve.files', name='font_awesome', filename='css/all.css') }}" />
62-
<link media="all" rel="stylesheet" href="{{ url_for('static', filename='css/common.css') }}" />
63-
<link media="all" rel="stylesheet" href="{{ theme_static('css/theme.css') }}" />
60+
<link media="all" rel="stylesheet" href="{{ url_for('serve.files', name='pygments', filename='css/colorful.css') }}">
61+
<link media="all" rel="stylesheet" href="{{ url_for('serve.files', name='font_awesome', filename='css/all.css') }}">
62+
<link media="all" rel="stylesheet" href="{{ url_for('static', filename='css/common.css') }}">
63+
<link media="all" rel="stylesheet" href="{{ theme_static('css/theme.css') }}">
6464
{{ stylesheets }}
6565
{%- endblock %}
6666
{%- if user.valid and user.css_url -%}
67-
<link media="all" rel="stylesheet" title="{{ user.name }}'s stylesheet" href="{{ user.css_url }}" />
67+
<link media="all" rel="stylesheet" title="{{ user.name }}'s stylesheet" href="{{ user.css_url }}">
6868
{%- endif -%}
6969
{%- endblock -%}
7070
{%- endblock %}

src/moin/templates/blog/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
{% block theme_stylesheets %}
1919
{{ super() }}
20-
<link media="all" rel="stylesheet" href="{{ theme_static('css/blog.css') }}" />
20+
<link media="all" rel="stylesheet" href="{{ theme_static('css/blog.css') }}">
2121
{% endblock %}
2222

2323
{% block header_itemviews %}
@@ -39,7 +39,7 @@
3939

4040
<div id="moin-blog-body">
4141
<div id="moin-blog-content">
42-
{% block blog_content %}<br />{% endblock %}
42+
{% block blog_content %}<br>{% endblock %}
4343
</div>
4444
{% if blog_name and supertags %}
4545
<div id="moin-blog-sidebar">

src/moin/templates/blog/utils.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ <h1><a href="{{ url_for('frontend.show_item', item_name=entry_item.name) }}"
5959
{{ forms.render(form['q']) }}
6060
{{ forms.render_submit(form, id='moin-search-submit') }}
6161
{{ forms.render_errors(form) }}
62-
<br />
62+
<br>
6363
<input type="checkbox" id="moin-blog-search-this"
64-
onclick="$('#moin-searchform').attr('action', this.checked ? '{{ url_for('frontend.search', item_name=blog_name) }}' : '{{ url_for('frontend.search') }}' );" />
64+
onclick="$('#moin-searchform').attr('action', this.checked ? '{{ url_for('frontend.search', item_name=blog_name) }}' : '{{ url_for('frontend.search') }}' );">
6565
{{ _("only this blog") }}
6666
{{ gen.form.close() }}
6767
{% endmacro %}

src/moin/templates/forms.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{% macro render_submit(form, name=None, value=None) %}
2222
<div class="moin-float-fix"> {# needed to add vertical whitespace below floated element #}
2323
{%- if name and value %}
24-
<input type="hidden" name="{{ name }}" value="{{ value }}" />
24+
<input type="hidden" name="{{ name }}" value="{{ value }}">
2525
{% endif %}
2626
{{ gen.input(type='submit', value=form.submit_label, class='moin-button', **kwargs) }}
2727
</div>

src/moin/templates/global_history.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
{% block head %}
2626
{{ super() }}
27-
<link rel="alternate" title="Global History" href="{{ url_for('feed.atom') }}" type="application/atom+xml" />
27+
<link rel="alternate" title="Global History" href="{{ url_for('feed.atom') }}" type="application/atom+xml">
2828
{% endblock %}
2929

3030
{% block content %}

src/moin/templates/history.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1>{{ heading }}</h1>
5252
{%- if history[0].trash %}
5353
<th class="moin-button-diff"><span class="moin-button moin-button-disabled">Diff</span></th>
5454
{%- else %}
55-
<th class="moin-button-diff"><input class="moin-button" type="submit" value="Diff" /></th>
55+
<th class="moin-button-diff"><input class="moin-button" type="submit" value="Diff"></th>
5656
{%- endif %}
5757
<th>{{ _("Editor") }}</th>
5858
<th>{{ _("Content Type") }}</th>
@@ -74,8 +74,8 @@ <h1>{{ heading }}</h1>
7474
{%- if doc.itemid == first_itemid %}
7575
<div class="moin-hist-rev">
7676
{%- if len(history) > 1 and not history[0].trash and not doc.trash %}
77-
<input type="radio" name="rev1" value="{{ doc.revid }}" {{ checker['check1'] }} />
78-
<input type="radio" name="rev2" value="{{ doc.revid }}" {{ checker['check2'] }} />
77+
<input type="radio" name="rev1" value="{{ doc.revid }}" {{ checker['check1'] }}>
78+
<input type="radio" name="rev2" value="{{ doc.revid }}" {{ checker['check2'] }}>
7979
{%- if checker['check1'] %}
8080
{%- if checker.update({'check1': ''}) %}{% endif %}
8181
{%- elif checker['check2'] %}

src/moin/templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{% endfor %}
4747
</ul>
4848
{% endif %}
49-
<hr class="moin-pageline" />
49+
<hr class="moin-pageline">
5050
{% block header_itemviews %}{% endblock %}
5151
{% endblock %}
5252
</header>

src/moin/templates/modify.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ <h1>{{ title }}</h1>
100100

101101
{% block options_for_javascript %}
102102
{%- if user.scroll_page_after_edit -%}
103-
<br id="moin-scroll-page-after-edit" />
103+
<br id="moin-scroll-page-after-edit">
104104
{%- endif %}
105105
{%- if draft_data -%}
106106
<textarea id="moin-draft-data">{{ draft_data }}</textarea>
107107
{%- endif %}
108108
{%- if lock_duration -%}
109-
<input id="moin-lock_duration" value="{{ lock_duration }}" />
109+
<input id="moin-lock_duration" value="{{ lock_duration }}">
110110
{%- endif %}
111-
<input id="moin-item-name" value="{{ fqname }}" />
111+
<input id="moin-item-name" value="{{ fqname }}">
112112
{% endblock %}

0 commit comments

Comments
 (0)