DataTable generates empty <tbody> --> invalid XHTML strict
----------------------------------------------------------
Key: WICKET-4142
URL: https://issues.apache.org/jira/browse/WICKET-4142
Project: Wicket
Issue Type: Bug
Components: wicket-extensions
Affects Versions: 1.5.1
Reporter: Sander Plas
Priority: Minor
When the dataset contains 0 rows, an empty <tbody> is generated by DataTable.
This is not valid XHTML strict.
According to XHTML 1.0 Strict:
- a <table> must at least contain one <tbody> or <tr>
- a <tbody> must contain at least one <tr>
- a <tr> must contain at least one <th> or <td>
I can only think of one possible solution and it's quite ugly: add an
"invisible row" (either always, or only when there are 0 rows) just after the
opening <tbody> tag in DataTable.html:
<tr style="display: none;"><td></td></tr>
--
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