[ 
https://issues.apache.org/jira/browse/WICKET-4153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133334#comment-13133334
 ] 

Sander Plas commented on WICKET-4153:
-------------------------------------

@Sven
I've been googling around a bit and it looks like the sentence from the HTML4 
document that you quoted earlier: 

"The TBODY start tag is always required except when the table contains only one 
body and no head or foot sections. The TBODY end tag may always be safely 
omitted. "

... is generally interpreted as: 

"If you don't use THEAD/TFOOT, you can leave out the TBODY too and add the TRs 
to the TABLE directly." 

This is consistent with XHTML 1 and HTML versions before 4. 


                
> 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
>             Fix For: 1.5.3
>
>         Attachments: DataTable.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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to