hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Some templates in paper style use <tbody> elements inside <table> to assign a class to "body" part of that table (in this case, to make rows striped). The problem is that the <tbody> is preceded by <tr> element, which browsers understand as an implicit start of table body, so the following exlicit <tbody> will actually be "nested", which is not valid. Since that first <tr> contains table headers, wrapping it in <thead> is both semantically correct and follows the advertised XHTML 1.1 doctype.
Showing
- mercurial/templates/paper/bookmarks.tmpl 2 additions, 0 deletionsmercurial/templates/paper/bookmarks.tmpl
- mercurial/templates/paper/branches.tmpl 2 additions, 0 deletionsmercurial/templates/paper/branches.tmpl
- mercurial/templates/paper/fileannotate.tmpl 2 additions, 0 deletionsmercurial/templates/paper/fileannotate.tmpl
- mercurial/templates/paper/filelog.tmpl 2 additions, 0 deletionsmercurial/templates/paper/filelog.tmpl
- mercurial/templates/paper/index.tmpl 2 additions, 0 deletionsmercurial/templates/paper/index.tmpl
- mercurial/templates/paper/manifest.tmpl 2 additions, 0 deletionsmercurial/templates/paper/manifest.tmpl
- mercurial/templates/paper/search.tmpl 2 additions, 0 deletionsmercurial/templates/paper/search.tmpl
- mercurial/templates/paper/shortlog.tmpl 2 additions, 0 deletionsmercurial/templates/paper/shortlog.tmpl
- mercurial/templates/paper/tags.tmpl 2 additions, 0 deletionsmercurial/templates/paper/tags.tmpl
- tests/test-hgweb-commands.t 4 additions, 0 deletionstests/test-hgweb-commands.t
- tests/test-hgweb-descend-empties.t 2 additions, 0 deletionstests/test-hgweb-descend-empties.t
- tests/test-hgweb-empty.t 6 additions, 0 deletionstests/test-hgweb-empty.t
- tests/test-hgweb-filelog.t 8 additions, 0 deletionstests/test-hgweb-filelog.t
- tests/test-hgweb.t 2 additions, 0 deletionstests/test-hgweb.t
- tests/test-hgwebdir.t 6 additions, 0 deletionstests/test-hgwebdir.t
- tests/test-highlight.t 2 additions, 0 deletionstests/test-highlight.t
Loading
Please register or sign in to comment