Skip to content

Commit a6ba1c8

Browse files
committed
fix: html report pages fully validate
1 parent 74c87a8 commit a6ba1c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1176
-1176
lines changed

coverage/htmlfiles/index.html

+15-15
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt #}
33

44
<!DOCTYPE html>
5-
<html>
5+
<html lang="en">
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
88
<title>{{ title|escape }}</title>
@@ -11,7 +11,7 @@
1111
{% if extra_css %}
1212
<link rel="stylesheet" href="{{ extra_css }}" type="text/css">
1313
{% endif %}
14-
<script type="text/javascript" src="coverage_html.js" defer></script>
14+
<script src="coverage_html.js" defer></script>
1515
</head>
1616
<body class="indexfile">
1717

@@ -24,7 +24,7 @@ <h1>{{ title|escape }}:
2424
<aside id="help_panel_wrapper">
2525
<input id="help_panel_state" type="checkbox">
2626
<label for="help_panel_state">
27-
<img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts" />
27+
<img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts">
2828
</label>
2929
<div id="help_panel">
3030
<p class="legend">Shortcuts on this page</p>
@@ -57,9 +57,9 @@ <h1>{{ title|escape }}:
5757
</aside>
5858

5959
<form id="filter_container">
60-
<input id="filter" type="text" value="" placeholder="filter..." />
60+
<input id="filter" type="text" value="" placeholder="filter...">
6161
<div>
62-
<input id="hide100" type="checkbox" {% if skip_covered %}checked disabled {% endif %}/>
62+
<input id="hide100" type="checkbox" {% if skip_covered %}checked disabled {% endif %}>
6363
<label for="hide100">hide covered</label>
6464
</div>
6565
</form>
@@ -84,16 +84,16 @@ <h2>
8484
<tr class="tablehead" title="Click to sort">
8585
<th class="name left" aria-sort="none" data-shortcut="f">File<span class="arrows"></span></th>
8686
{% if column2 %}
87-
<th class="name left" aria-sort="none" data-default-sort-order="ascending" data-shortcut="n">{{ column2 }}<span class="arrows"/></th>
87+
<th class="name left" aria-sort="none" data-default-sort-order="ascending" data-shortcut="n">{{ column2 }}<span class="arrows"></span></th>
8888
{% endif %}
89-
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="s">statements<span class="arrows"/></th>
90-
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="m">missing<span class="arrows"/></th>
91-
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="x">excluded<span class="arrows"/></th>
89+
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="s">statements<span class="arrows"></span></th>
90+
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="m">missing<span class="arrows"></span></th>
91+
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="x">excluded<span class="arrows"></span></th>
9292
{% if has_arcs %}
93-
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="b">branches<span class="arrows"/></th>
94-
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="p">partial<span class="arrows"/></th>
93+
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="b">branches<span class="arrows"></span></th>
94+
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="p">partial<span class="arrows"></span></th>
9595
{% endif %}
96-
<th class="right" aria-sort="none" data-shortcut="c">coverage<span class="arrows"/></th>
96+
<th class="right" aria-sort="none" data-shortcut="c">coverage<span class="arrows"></span></th>
9797
</tr>
9898
</thead>
9999
<tbody>
@@ -154,9 +154,9 @@ <h2>
154154
<aside class="hidden">
155155
<a id="prevFileLink" class="nav" href="{{ final_html }}"></a>
156156
<a id="nextFileLink" class="nav" href="{{ first_html }}"></a>
157-
<button type="button" class="button_prev_file" data-shortcut="["/>
158-
<button type="button" class="button_next_file" data-shortcut="]"/>
159-
<button type="button" class="button_show_hide_help" data-shortcut="?"/>
157+
<button type="button" class="button_prev_file" data-shortcut="["></button>
158+
<button type="button" class="button_next_file" data-shortcut="]"></button>
159+
<button type="button" class="button_show_hide_help" data-shortcut="?"></button>
160160
</aside>
161161
</footer>
162162

coverage/htmlfiles/pyfile.html

+15-15
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt #}
33

44
<!DOCTYPE html>
5-
<html>
5+
<html lang="en">
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
88
<title>Coverage for {{relative_filename|escape}}: {{nums.pc_covered_str}}%</title>
@@ -18,7 +18,7 @@
1818
</script>
1919
{% endif %}
2020

21-
<script type="text/javascript" src="coverage_html.js" defer></script>
21+
<script src="coverage_html.js" defer></script>
2222
</head>
2323
<body class="pyfile">
2424

@@ -32,7 +32,7 @@ <h1>
3232
<aside id="help_panel_wrapper">
3333
<input id="help_panel_state" type="checkbox">
3434
<label for="help_panel_state">
35-
<img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts" />
35+
<img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts">
3636
</label>
3737
<div id="help_panel">
3838
<p class="legend">Shortcuts on this page</p>
@@ -92,14 +92,14 @@ <h2>
9292
</p>
9393

9494
<aside class="hidden">
95-
<button type="button" class="button_next_chunk" data-shortcut="j"/>
96-
<button type="button" class="button_prev_chunk" data-shortcut="k"/>
97-
<button type="button" class="button_top_of_page" data-shortcut="0"/>
98-
<button type="button" class="button_first_chunk" data-shortcut="1"/>
99-
<button type="button" class="button_prev_file" data-shortcut="["/>
100-
<button type="button" class="button_next_file" data-shortcut="]"/>
101-
<button type="button" class="button_to_index" data-shortcut="u"/>
102-
<button type="button" class="button_show_hide_help" data-shortcut="?"/>
95+
<button type="button" class="button_next_chunk" data-shortcut="j"></button>
96+
<button type="button" class="button_prev_chunk" data-shortcut="k"></button>
97+
<button type="button" class="button_top_of_page" data-shortcut="0"></button>
98+
<button type="button" class="button_first_chunk" data-shortcut="1"></button>
99+
<button type="button" class="button_prev_file" data-shortcut="["></button>
100+
<button type="button" class="button_next_file" data-shortcut="]"></button>
101+
<button type="button" class="button_to_index" data-shortcut="u"></button>
102+
<button type="button" class="button_show_hide_help" data-shortcut="?"></button>
103103
</aside>
104104
</div>
105105
</header>
@@ -111,7 +111,7 @@ <h2>
111111
<span class="n"><a id="t{{line.number}}" href="#t{{line.number}}">{{line.number}}</a></span>
112112
<span class="t">{{line.html}}&nbsp;</span>
113113
{% if line.context_list %}
114-
<input type="checkbox" id="ctxs{{line.number}}" />
114+
<input type="checkbox" id="ctxs{{line.number}}">
115115
{% endif %}
116116
{# Things that should float right in the line. #}
117117
<span class="r">
@@ -135,9 +135,9 @@ <h2>
135135
<footer>
136136
<div class="content">
137137
<p>
138-
<a id="prevFileLink" class="nav" href="{{ prev_html }}">&#xab; prev</a> &nbsp; &nbsp;
139-
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
140-
<a id="nextFileLink" class="nav" href="{{ next_html }}">&#xbb; next</a>
138+
<a class="nav" href="{{ prev_html }}">&#xab; prev</a> &nbsp; &nbsp;
139+
<a class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
140+
<a class="nav" href="{{ next_html }}">&#xbb; next</a>
141141
&nbsp; &nbsp; &nbsp;
142142
<a class="nav" href="{{__url__}}">coverage.py v{{__version__}}</a>,
143143
created at {{ time_stamp }}

tests/gold/html/a/a_py.html

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
55
<title>Coverage for a.py: 67%</title>
66
<link rel="icon" sizes="32x32" href="favicon_32.png">
77
<link rel="stylesheet" href="style.css" type="text/css">
8-
<script type="text/javascript" src="coverage_html.js" defer></script>
8+
<script src="coverage_html.js" defer></script>
99
</head>
1010
<body class="pyfile">
1111
<header>
@@ -17,7 +17,7 @@ <h1>
1717
<aside id="help_panel_wrapper">
1818
<input id="help_panel_state" type="checkbox">
1919
<label for="help_panel_state">
20-
<img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts" />
20+
<img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts">
2121
</label>
2222
<div id="help_panel">
2323
<p class="legend">Shortcuts on this page</p>
@@ -64,18 +64,18 @@ <h2>
6464
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
6565
<a id="nextFileLink" class="nav" href="index.html">&#xbb; next</a>
6666
&nbsp; &nbsp; &nbsp;
67-
<a class="nav" href="https://coverage.readthedocs.io/en/6.4a0">coverage.py v6.4a0</a>,
68-
created at 2022-05-20 16:29 -0400
67+
<a class="nav" href="https://coverage.readthedocs.io/en/7.5.0a1.dev1">coverage.py v7.5.0a1.dev1</a>,
68+
created at 2024-04-21 10:39 -0400
6969
</p>
7070
<aside class="hidden">
71-
<button type="button" class="button_next_chunk" data-shortcut="j"/>
72-
<button type="button" class="button_prev_chunk" data-shortcut="k"/>
73-
<button type="button" class="button_top_of_page" data-shortcut="0"/>
74-
<button type="button" class="button_first_chunk" data-shortcut="1"/>
75-
<button type="button" class="button_prev_file" data-shortcut="["/>
76-
<button type="button" class="button_next_file" data-shortcut="]"/>
77-
<button type="button" class="button_to_index" data-shortcut="u"/>
78-
<button type="button" class="button_show_hide_help" data-shortcut="?"/>
71+
<button type="button" class="button_next_chunk" data-shortcut="j"></button>
72+
<button type="button" class="button_prev_chunk" data-shortcut="k"></button>
73+
<button type="button" class="button_top_of_page" data-shortcut="0"></button>
74+
<button type="button" class="button_first_chunk" data-shortcut="1"></button>
75+
<button type="button" class="button_prev_file" data-shortcut="["></button>
76+
<button type="button" class="button_next_file" data-shortcut="]"></button>
77+
<button type="button" class="button_to_index" data-shortcut="u"></button>
78+
<button type="button" class="button_show_hide_help" data-shortcut="?"></button>
7979
</aside>
8080
</div>
8181
</header>
@@ -89,12 +89,12 @@ <h2>
8989
<footer>
9090
<div class="content">
9191
<p>
92-
<a id="prevFileLink" class="nav" href="index.html">&#xab; prev</a> &nbsp; &nbsp;
93-
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
94-
<a id="nextFileLink" class="nav" href="index.html">&#xbb; next</a>
92+
<a class="nav" href="index.html">&#xab; prev</a> &nbsp; &nbsp;
93+
<a class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
94+
<a class="nav" href="index.html">&#xbb; next</a>
9595
&nbsp; &nbsp; &nbsp;
96-
<a class="nav" href="https://coverage.readthedocs.io/en/6.4a0">coverage.py v6.4a0</a>,
97-
created at 2022-05-20 16:29 -0400
96+
<a class="nav" href="https://coverage.readthedocs.io/en/7.5.0a1.dev1">coverage.py v7.5.0a1.dev1</a>,
97+
created at 2024-04-21 10:39 -0400
9898
</p>
9999
</div>
100100
</footer>

tests/gold/html/a/class_index.html

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
55
<title>Coverage report</title>
66
<link rel="icon" sizes="32x32" href="favicon_32.png">
77
<link rel="stylesheet" href="style.css" type="text/css">
8-
<script type="text/javascript" src="coverage_html.js" defer></script>
8+
<script src="coverage_html.js" defer></script>
99
</head>
1010
<body class="indexfile">
1111
<header>
@@ -16,7 +16,7 @@ <h1>Coverage report:
1616
<aside id="help_panel_wrapper">
1717
<input id="help_panel_state" type="checkbox">
1818
<label for="help_panel_state">
19-
<img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts" />
19+
<img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts">
2020
</label>
2121
<div id="help_panel">
2222
<p class="legend">Shortcuts on this page</p>
@@ -42,9 +42,9 @@ <h1>Coverage report:
4242
</div>
4343
</aside>
4444
<form id="filter_container">
45-
<input id="filter" type="text" value="" placeholder="filter..." />
45+
<input id="filter" type="text" value="" placeholder="filter...">
4646
<div>
47-
<input id="hide100" type="checkbox" />
47+
<input id="hide100" type="checkbox" >
4848
<label for="hide100">hide covered</label>
4949
</div>
5050
</form>
@@ -55,7 +55,7 @@ <h2>
5555
</h2>
5656
<p class="text">
5757
<a class="nav" href="https://coverage.readthedocs.io/en/7.5.0a1.dev1">coverage.py v7.5.0a1.dev1</a>,
58-
created at 2024-04-21 10:14 -0400
58+
created at 2024-04-21 10:39 -0400
5959
</p>
6060
</div>
6161
</header>
@@ -64,11 +64,11 @@ <h2>
6464
<thead>
6565
<tr class="tablehead" title="Click to sort">
6666
<th class="name left" aria-sort="none" data-shortcut="f">File<span class="arrows"></span></th>
67-
<th class="name left" aria-sort="none" data-default-sort-order="ascending" data-shortcut="n">class<span class="arrows"/></th>
68-
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="s">statements<span class="arrows"/></th>
69-
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="m">missing<span class="arrows"/></th>
70-
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="x">excluded<span class="arrows"/></th>
71-
<th class="right" aria-sort="none" data-shortcut="c">coverage<span class="arrows"/></th>
67+
<th class="name left" aria-sort="none" data-default-sort-order="ascending" data-shortcut="n">class<span class="arrows"></span></th>
68+
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="s">statements<span class="arrows"></span></th>
69+
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="m">missing<span class="arrows"></span></th>
70+
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="x">excluded<span class="arrows"></span></th>
71+
<th class="right" aria-sort="none" data-shortcut="c">coverage<span class="arrows"></span></th>
7272
</tr>
7373
</thead>
7474
<tbody>
@@ -100,15 +100,15 @@ <h2>
100100
<div class="content">
101101
<p>
102102
<a class="nav" href="https://coverage.readthedocs.io/en/7.5.0a1.dev1">coverage.py v7.5.0a1.dev1</a>,
103-
created at 2024-04-21 10:14 -0400
103+
created at 2024-04-21 10:39 -0400
104104
</p>
105105
</div>
106106
<aside class="hidden">
107107
<a id="prevFileLink" class="nav" href=""></a>
108108
<a id="nextFileLink" class="nav" href=""></a>
109-
<button type="button" class="button_prev_file" data-shortcut="["/>
110-
<button type="button" class="button_next_file" data-shortcut="]"/>
111-
<button type="button" class="button_show_hide_help" data-shortcut="?"/>
109+
<button type="button" class="button_prev_file" data-shortcut="["></button>
110+
<button type="button" class="button_next_file" data-shortcut="]"></button>
111+
<button type="button" class="button_show_hide_help" data-shortcut="?"></button>
112112
</aside>
113113
</footer>
114114
</body>

0 commit comments

Comments
 (0)