Wicket
  1. Wicket
  2. WICKET-1496

DataTable.html does not validate (HTML 4.01/XHTML-Strict)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.3.3
    • Fix Version/s: 1.3.5, 1.4-RC1
    • Component/s: wicket-extensions
    • Labels:
      None

      Description

      According to http://www.w3.org/TR/html401/struct/tables.html#h-11.2.3, <tfoot>..</tfoot> must come before the start of <tbody>. The has not changed for XHTML.

      Proposed fix: just move <tfoot> up after <thead> and before <tbody>.

        Activity

        Hide
        Gerolf Seitz added a comment -

        fixed. thanks.

        Show
        Gerolf Seitz added a comment - fixed. thanks.
        Hide
        Kaspar Fischer added a comment -

        Thanks for the fix.

        Unfortunately, another validation issue shows up: If there is no markup between <tfoot> and </tfoot>, the table markup does not validate.

        Here is an example that only validates if you uncomment the comment in it (see validator.w3.org):

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Test</title>
        </head>
        <body>

        <table>
        <thead>
        <tr>
        <th></th>
        <th></th>
        </tr>
        </thead>
        <tfoot>
        <!--
        <tr>
        <td></td>
        <td></td>
        </tr>
        -->
        </tfoot>
        <tbody>
        <tr>
        <td></td>
        <td></td>
        </tr>
        </tbody>
        </table>

        </body>
        </html>

        It seems, <tfoot> needs to be hidded if it has no content.

        Show
        Kaspar Fischer added a comment - Thanks for the fix. Unfortunately, another validation issue shows up: If there is no markup between <tfoot> and </tfoot>, the table markup does not validate. Here is an example that only validates if you uncomment the comment in it (see validator.w3.org): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Test</title> </head> <body> <table> <thead> <tr> <th></th> <th></th> </tr> </thead> <tfoot> <!-- <tr> <td></td> <td></td> </tr> --> </tfoot> <tbody> <tr> <td></td> <td></td> </tr> </tbody> </table> </body> </html> It seems, <tfoot> needs to be hidded if it has no content.

          People

          • Assignee:
            Igor Vaynberg
            Reporter:
            Kaspar Fischer
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development