Mercurial > hg > mercurial-source
changeset 23842:c4f6fc4eb01e
hgweb: close <img> elements
Templates declare xhtml doctype, which means, in particular, that the document
must also be valid xml. So <img> elements must be closed.
author | Anton Shestakov <engored@ya.ru> |
---|---|
date | Sat, 10 Jan 2015 17:54:24 +0800 |
parents | 70cfa7e1611b |
children | 0ab23a48b9a7 |
files | mercurial/templates/monoblue/footer.tmpl mercurial/templates/paper/bookmarks.tmpl mercurial/templates/paper/branches.tmpl mercurial/templates/paper/filelog.tmpl mercurial/templates/paper/graph.tmpl mercurial/templates/paper/shortlog.tmpl mercurial/templates/paper/tags.tmpl tests/test-hgweb-commands.t tests/test-hgweb-empty.t tests/test-hgweb-filelog.t |
diffstat | 10 files changed, 21 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templates/monoblue/footer.tmpl +++ b/mercurial/templates/monoblue/footer.tmpl @@ -9,7 +9,7 @@ </div> <div id="powered-by"> - <p><a href="{logourl}" title="Mercurial"><img src="{staticurl|urlescape}{logoimg}" width=75 height=90 border=0 alt="mercurial"></a></p> + <p><a href="{logourl}" title="Mercurial"><img src="{staticurl|urlescape}{logoimg}" width=75 height=90 border=0 alt="mercurial" /></a></p> </div> <div id="corner-top-left"></div>
--- a/mercurial/templates/paper/bookmarks.tmpl +++ b/mercurial/templates/paper/bookmarks.tmpl @@ -26,7 +26,7 @@ <p></p> <div class="atom-logo"> <a href="{url|urlescape}atom-bookmarks" title="subscribe to atom feed"> -<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed"> +<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed" /> </a> </div> </div>
--- a/mercurial/templates/paper/branches.tmpl +++ b/mercurial/templates/paper/branches.tmpl @@ -26,7 +26,7 @@ <p></p> <div class="atom-logo"> <a href="{url|urlescape}atom-branches" title="subscribe to atom feed"> -<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed"> +<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed" /> </a> </div> </div>
--- a/mercurial/templates/paper/filelog.tmpl +++ b/mercurial/templates/paper/filelog.tmpl @@ -38,7 +38,8 @@ <p></p> <div class="atom-logo"> <a href="{url|urlescape}atom-log/{node|short}/{file|urlescape}" title="subscribe to atom feed"> -<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed"></a> +<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed" /> +</a> </div> </div>
--- a/mercurial/templates/paper/graph.tmpl +++ b/mercurial/templates/paper/graph.tmpl @@ -31,7 +31,7 @@ <p></p> <div class="atom-logo"> <a href="{url|urlescape}atom-log" title="subscribe to atom feed"> -<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed"> +<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed" /> </a> </div> </div>
--- a/mercurial/templates/paper/shortlog.tmpl +++ b/mercurial/templates/paper/shortlog.tmpl @@ -33,7 +33,7 @@ <p></p> <div class="atom-logo"> <a href="{url|urlescape}atom-log" title="subscribe to atom feed"> -<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed"> +<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed" /> </a> </div> </div>
--- a/mercurial/templates/paper/tags.tmpl +++ b/mercurial/templates/paper/tags.tmpl @@ -26,7 +26,8 @@ <p></p> <div class="atom-logo"> <a href="{url|urlescape}atom-tags" title="subscribe to atom feed"> -<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed"></a> +<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed" /> +</a> </div> </div>
--- a/tests/test-hgweb-commands.t +++ b/tests/test-hgweb-commands.t @@ -729,7 +729,7 @@ <p></p> <div class="atom-logo"> <a href="/atom-log" title="subscribe to atom feed"> - <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> </a> </div> </div>
--- a/tests/test-hgweb-empty.t +++ b/tests/test-hgweb-empty.t @@ -51,7 +51,7 @@ <p></p> <div class="atom-logo"> <a href="/atom-log" title="subscribe to atom feed"> - <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> </a> </div> </div> @@ -161,7 +161,7 @@ <p></p> <div class="atom-logo"> <a href="/atom-log" title="subscribe to atom feed"> - <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> </a> </div> </div> @@ -267,7 +267,7 @@ <p></p> <div class="atom-logo"> <a href="/atom-log" title="subscribe to atom feed"> - <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> </a> </div> </div>
--- a/tests/test-hgweb-filelog.t +++ b/tests/test-hgweb-filelog.t @@ -159,7 +159,8 @@ <p></p> <div class="atom-logo"> <a href="/atom-log/01de2d66a28d/a" title="subscribe to atom feed"> - <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"></a> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> + </a> </div> </div> @@ -268,7 +269,8 @@ <p></p> <div class="atom-logo"> <a href="/atom-log/01de2d66a28d/a" title="subscribe to atom feed"> - <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"></a> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> + </a> </div> </div> @@ -377,7 +379,8 @@ <p></p> <div class="atom-logo"> <a href="/atom-log/5ed941583260/a" title="subscribe to atom feed"> - <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"></a> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> + </a> </div> </div> @@ -481,7 +484,8 @@ <p></p> <div class="atom-logo"> <a href="/atom-log/5ed941583260/a" title="subscribe to atom feed"> - <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"></a> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> + </a> </div> </div>