comparison tests/test-hgweb-commands.t @ 24054:fdf7794be41d

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.
author Anton Shestakov <engored@ya.ru>
date Fri, 06 Feb 2015 15:52:55 +0800
parents bf661a03fddc
children 03f692eee31d
comparison
equal deleted inserted replaced
24053:dc4fa3992414 24054:fdf7794be41d
749 <a href="/shortlog/3?revcount=120">more</a> 749 <a href="/shortlog/3?revcount=120">more</a>
750 | rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a> 750 | rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a>
751 </div> 751 </div>
752 752
753 <table class="bigtable"> 753 <table class="bigtable">
754 <thead>
754 <tr> 755 <tr>
755 <th class="age">age</th> 756 <th class="age">age</th>
756 <th class="author">author</th> 757 <th class="author">author</th>
757 <th class="description">description</th> 758 <th class="description">description</th>
758 </tr> 759 </tr>
760 </thead>
759 <tbody class="stripes2"> 761 <tbody class="stripes2">
760 <tr> 762 <tr>
761 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td> 763 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
762 <td class="author">test</td> 764 <td class="author">test</td>
763 <td class="description"><a href="/rev/cad8025a2e87">branch commit with null character: </a><span class="branchhead">unstable</span> <span class="tag">tip</span> <span class="tag">something</span> </td> 765 <td class="description"><a href="/rev/cad8025a2e87">branch commit with null character: </a><span class="branchhead">unstable</span> <span class="tag">tip</span> <span class="tag">something</span> </td>
1008 <a href="/log?rev=base&revcount=5">less</a> 1010 <a href="/log?rev=base&revcount=5">less</a>
1009 <a href="/log?rev=base&revcount=20">more</a> 1011 <a href="/log?rev=base&revcount=20">more</a>
1010 </div> 1012 </div>
1011 1013
1012 <table class="bigtable"> 1014 <table class="bigtable">
1015 <thead>
1013 <tr> 1016 <tr>
1014 <th class="age">age</th> 1017 <th class="age">age</th>
1015 <th class="author">author</th> 1018 <th class="author">author</th>
1016 <th class="description">description</th> 1019 <th class="description">description</th>
1017 </tr> 1020 </tr>
1021 </thead>
1018 <tbody class="stripes2"> 1022 <tbody class="stripes2">
1019 <tr> 1023 <tr>
1020 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td> 1024 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
1021 <td class="author">test</td> 1025 <td class="author">test</td>
1022 <td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> <span class="tag">anotherthing</span> </td> 1026 <td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> <span class="tag">anotherthing</span> </td>