HTML 5.0 to XWiki 2.1 conversion can't handle table captions?

Hello there,

I am converting HTML to XWiki syntax and noticed that tables with captions
are not converted properly. The caption will be moved into the first head cell.

<table>
 <caption>some table</caption>
 <thead>
  <tr>
   <td>column 1</td>
   <td>column 2</td>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>foo</td>
   <td>bar</td>
  </tr>
  <tr>
   <td>A</td>
   <td>B</td>
  </tr>
 </tbody>
</table>

looks like

|some tablecolumn 1|column 2
|foo|bar
|A|B

any ideas on how to fix this?
I also tested it here, same outcome.
https://rendering.xwiki.org/xwiki/bin/view/Main/WebHome

Hello,

Related issue: Loading...

However, not supporting “table captions” is one thing, but we should ignore it at least (I thought it was the case). Please raise a bug issue at Loading...

Right now, the workaround is to remove the <caption> tag before converting.

Thank you