When using a doctype, elements are rendered with default attribute values
-------------------------------------------------------------------------
Key: TAP5-1044
URL: https://issues.apache.org/jira/browse/TAP5-1044
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.1.0.5
Reporter: Paul Field
It's easiest to see this with an example:
--------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
<body>
<table>
<tbody>
<tr>
<th>x</th>
</tr>
</tbody>
</table>
</body>
</html>
--------------------
Will render the table row as:
<tr><th rowspan="1" colspan="1">x</th></tr>
Notice the rowspan and colspan attributes have appeared.
If you remove the <!DOCTYPE> then the <th> renders without the rowspan/colspan.
I believe these default values are coming from the DTD. It's not a problem for
the functionality of the page, but it does add to the size of HTML generated
(particularly as this affects table cells, of which there are often many in a
page).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.