The caption element must be the first element of a table element: http://www.w3.org/TR/html5/tabular-data.html#the-caption-element
{| class="wikitable sortable"
+ CAPTION |
- |
! THEAD
- |
A |
- |
B |
- class="sortbottom" |
TFOOT |
} |
is converted to
<table class="wikitable sortable jquery-tablesorter">
<thead>
<tr>
<th class="headerSort" title="Aufsteigend sortieren">THEAD</th>
</tr>
</thead>
<caption>CAPTION</caption>
<tbody>
<tr>
<td>A</td>
</tr>
<tr>
<td>B</td>
</tr>
<tr class="sortbottom">
<td>TFOOT</td>
</tr>
</tbody>
<tfoot></tfoot>
</table>
expected result:
<table class="wikitable sortable jquery-tablesorter">
<caption>CAPTION</caption>
<thead>
<tr>
<th class="headerSort" title="Aufsteigend sortieren">THEAD</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
</tr>
<tr>
<td>B</td>
</tr>
</tbody>
<tfoot>
<tr class="sortbottom">
<td>TFOOT</td>
</tr>
</tfoot>
</table>
Version: 1.18.x
Severity: normal
URL: https://forum.jquery.com/topic/in-table-with-class-sortable-thead-is-before-caption