[
https://issues.apache.org/jira/browse/WICKET-4153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14149110#comment-14149110
]
Martin Grigorov edited comment on WICKET-4153 at 9/26/14 12:57 PM:
-------------------------------------------------------------------
Closing as "Won't Fix".
HTML5 (http://www.w3.org/TR/html5-diff/#content-model) says it is allowed to
use empty elements:
"The table, thead, tbody, tfoot, tr, ol, ul and dl elements are allowed to be
empty in HTML."
If strict XHTML compliance is needed then a custom data table component should
be used.
was (Author: mgrigorov):
Closing as "Won't Fix".
HTML5 says it is allowed to use empty elements:
"The table, thead, tbody, tfoot, tr, ol, ul and dl elements are allowed to be
empty in HTML."
If strict XHTML compliance is needed then a custom data table component should
be used.
> The tbody section of a DataTable is empty when no records are returned by the
> provider.
> ---------------------------------------------------------------------------------------
>
> Key: WICKET-4153
> URL: https://issues.apache.org/jira/browse/WICKET-4153
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.5.1
> Reporter: Bertrand Guay-Paquet
> Priority: Trivial
> Labels: datatable
> Attachments: DataTable-usePlainTR.diff, DataTable.patch,
> DataTableTest-usePlainTR.diff, addCenterToolbar.patch, good.png,
> with_patch.png, without_patch.png
>
>
> When a DataTable is rendered without records, the tbody section is empty.
> This violates the html spec.
> From the spec:
> "When present, each THEAD, TFOOT, and TBODY contains a row group. Each row
> group must contain at least one row, defined by the TR element."
> and
> "The THEAD, TFOOT, and TBODY sections must contain the same number of
> columns."
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)