View Single Post
Old 10-28-2016, 05:30 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
You can reproduce roger64's issue with the following HTML sample code, which is not identical to roger64's code, but produces the same error:

Before cleaning:

Code:
<table> 
    <col width="80"/> 
    <col width="100"/> 
    <col width="320"/> 
    <tr> 
        <td>row 1, col 1</td> 
        <td>row 1, col 2</td> 
        <td>row 1, col 3</td> 
    </tr> 
</table>
After cleaning:

Code:
  <table>
    <colgroup>
      <col width="80"/>
      <col width="100"/>
      <col width="320"/>
    </colgroup>

    <tbody>
      <tr>
        <td>row 1, col 1</td>
        <td>row 1, col 2</td>
        <td>row 1, col 3</td>
      </tr>
    </tbody>
  </table>
@roger64: Your original table is invalid because it was missing <colgroup> and <tbody> tags.

AFAIK, the welformedness check can't catch these issues, because it can only flag problems with existing tags. I.e. it can only find missing or improperly nested tags.
BTW, epubcheck didn't find these problems either.

Last edited by Doitsu; 10-28-2016 at 05:35 AM.
Doitsu is offline   Reply With Quote