diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-10-25 10:27:43 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-10-25 10:27:43 -0400 |
commit | 9240e30ecb028faba4577c3d9e8055638f55db53 (patch) | |
tree | 7e8b98b718a589e2c64ae9e5f694bca6da43d66d /coverage/htmlfiles | |
parent | 0342078b0bee470cb8670f1d69008015fd977d9c (diff) | |
download | python-coveragepy-git-9240e30ecb028faba4577c3d9e8055638f55db53.tar.gz |
Change HTML pages to be HTML 5
Diffstat (limited to 'coverage/htmlfiles')
-rw-r--r-- | coverage/htmlfiles/index.html | 8 | ||||
-rw-r--r-- | coverage/htmlfiles/pyfile.html | 14 | ||||
-rw-r--r-- | coverage/htmlfiles/style.css | 5 |
3 files changed, 15 insertions, 12 deletions
diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html index bea715e1..ef4867a8 100644 --- a/coverage/htmlfiles/index.html +++ b/coverage/htmlfiles/index.html @@ -1,4 +1,4 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> @@ -12,7 +12,7 @@ <script type='text/javascript' src='jquery.tablesorter.min.js'></script> <script type='text/javascript' src='jquery.hotkeys.js'></script> <script type='text/javascript' src='coverage_html.js'></script> - <script type='text/javascript' charset='utf-8'> + <script type='text/javascript'> jQuery(document).ready(coverage.index_ready); </script> </head> @@ -24,7 +24,7 @@ <span class='pc_cov'>{{totals.pc_covered_str}}%</span> </h1> - <img id='keyboard_icon' src='keybd_closed.png' /> + <img id='keyboard_icon' src='keybd_closed.png' alt='Show keyboard shortcuts' /> <form id="filter_container"> <label for="filter">Filter</label> @@ -34,7 +34,7 @@ </div> <div class='help_panel'> - <img id='panel_icon' src='keybd_open.png' /> + <img id='panel_icon' src='keybd_open.png' alt='Hide keyboard shortcuts' /> <p class='legend'>Hot-keys on this page</p> <div> <p class='keyhelp'> diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index da505a76..38dfb47b 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -1,4 +1,4 @@ -<!doctype html PUBLIC "-//W3C//DTD html 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<!DOCTYPE html> <html> <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> @@ -14,7 +14,7 @@ <script type='text/javascript' src='jquery.hotkeys.js'></script> <script type='text/javascript' src='jquery.isonscreen.js'></script> <script type='text/javascript' src='coverage_html.js'></script> - <script type='text/javascript' charset='utf-8'> + <script type='text/javascript'> jQuery(document).ready(coverage.pyfile_ready); </script> </head> @@ -26,7 +26,7 @@ <span class='pc_cov'>{{nums.pc_covered_str}}%</span> </h1> - <img id='keyboard_icon' src='keybd_closed.png' /> + <img id='keyboard_icon' src='keybd_closed.png' alt='Show keyboard shortcuts' /> <h2 class='stats'> {{nums.n_statements}} statements @@ -42,7 +42,7 @@ </div> <div class='help_panel'> - <img id='panel_icon' src='keybd_open.png' /> + <img id='panel_icon' src='keybd_open.png' alt='Hide keyboard shortcuts' /> <p class='legend'>Hot-keys on this page</p> <div> <p class='keyhelp'> @@ -65,14 +65,14 @@ </div> <div id='source'> - <table cellspacing='0' cellpadding='0'> + <table> <tr> - <td class='linenos' valign='top'> + <td class='linenos'> {% for line in lines %} <p id='n{{line.number}}' class='{{line.class}}'><a href='#n{{line.number}}'>{{line.number}}</a></p> {% endfor %} </td> - <td class='text' valign='top'> + <td class='text'> {% for line in lines %} <p id='t{{line.number}}' class='{{line.class}}'>{% if line.annotate %}<span class='annotate' title='{{line.annotate_title}}'>{{line.annotate}}</span>{% endif %}{{line.html}}<span class='strut'> </span></p> {% endfor %} diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css index 9010af76..038335c1 100644 --- a/coverage/htmlfiles/style.css +++ b/coverage/htmlfiles/style.css @@ -1,6 +1,6 @@ /* CSS styles for Coverage. */ /* Page-wide styles */ -html, body, h1, h2, h3, p, td, th { +html, body, h1, h2, h3, p, table, td, th { margin: 0; padding: 0; border: 0; @@ -31,6 +31,9 @@ p { table { border-collapse: collapse; } +td { + vertical-align: top; +} table tr.hidden { display: none !important; } |