mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-14 07:59:34 +00:00

Correctly handle formatting of tables containing thead and/or tfoot, but without any tbody, to prevent including thead/tfoot content twice within the table's derived body. * lisp/net/shr.el (shr--fix-tbody): Omit 'thead' and 'tfoot' from implicit body. (Bug#71685) * test/lisp/net/shr-resources/table.html: * test/lisp/net/shr-resources/table.txt: New tests for table rendering.
7 lines
172 B
HTML
7 lines
172 B
HTML
<table>
|
|
<thead><tr><th>A</th><th>B</th></tr></thead>
|
|
<tr><td>1</td><td>2</td></tr>
|
|
<tr><td>3</td><td>4</td></tr>
|
|
5678
|
|
<tfoot><tr><th>A</th><th>B</th></tr></tfoot>
|
|
</table>
|