https://bugzilla.wikimedia.org/show_bug.cgi?id=72702

            Bug ID: 72702
           Summary: Parsoid does not understand thead/tfoot
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: serializer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

If you give Parsoid a table with a <thead> and a <tfoot>, it's serialized
completely wrong, and when the wikitext is then parsed back to HTML, the last
row of the thead ends up being merged with the first row of the tbody, because
row separators aren't emitted in the serializer apparently.

<tfoot> is not included in this example, but something similar happens there.

$ echo "<table><thead><tr><th>1 1</th><th>1 2</th></thead><tbody><tr><td>2
1</td><td>2 2</td></tr><tr><td>3 1</td><td>3 2</td></tr><tr><td>4 1</td><td>4
2</td></tr></tbody></table>" | node tests/parse.js --html2html --normalize

<table>
<tbody>
<tr>
<th>1 1</th>
<th>1 2</th>
<td>2 1</td>
<td>2 2</td>
</tr>
<tr>
<td>3 1</td>
<td>3 2</td>
</tr>
<tr>
<td>4 1</td>
<td>4 2</td>
</tr>
</tbody>
</table>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to