Sigil-Ebook / flightcrew

Automatically exported from code.google.com/p/flightcrew
GNU General Public License v3.0
34 stars 11 forks source link

Invalid table structure passes validation #46

Closed GoogleCodeExporter closed 1 year ago

GoogleCodeExporter commented 9 years ago
# Steps to reproduce:

1. In Sigil, include a table in an epub with a <thead> but no <tbody>

  <table>
    <thead>
      <tr>
        <td>One</td>

        <td>Two</td>
      </tr>
    </thead>

    <tr>
      <td>A</td>

      <td>B</td>
    </tr>

    <tr>
      <td>C</td>

      <td>D</td>
    </tr>
  </table>

2. Run Flightcrew validation.

Flightcrew passes this as valid (Flightcrew validation in Sigil 0.8.4 on 
Windows 7). This is incorrect. EpubCheck on validator.idpf.org produces these 
errors:

> Results: The following problems were found in table-test-validation.epub:
> 
> Type  File    Line    Position    Message
> ERROR OEBPS/Text/Section0001.xhtml    20  9   element "tr" not allowed here; 
expected element "tbody" or "tfoot"
> ERROR OEBPS/Text/Section0001.xhtml    26  9   element "tr" not allowed here; 
expected element "tbody" or "tfoot"
> ERROR OEBPS/Text/Section0001.xhtml    31  11  element "table" incomplete; missing 
required element "tbody"
> Validated using EpubCheck version 3.0.1.

Original issue reported on code.google.com by arthurat...@gmail.com on 3 Mar 2015 at 12:51

Attachments:

kevinhendricks commented 1 year ago

Closing as this repo is being archived.