You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Paul Field (JIRA)" <ji...@apache.org> on 2010/03/04 16:10:27 UTC
[jira] Created: (TAP5-1044) When using a doctype, elements are
rendered with default attribute values
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.
[jira] Commented: (TAP5-1044) When using a doctype, elements are
rendered with default attribute values
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841346#action_12841346 ]
Howard M. Lewis Ship commented on TAP5-1044:
--------------------------------------------
Please search the archives about this ... it has come up in the past, and is usually traced back to the XML parser you are using.
> 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.
[jira] Closed: (TAP5-1044) When using a doctype, elements are
rendered with default attribute values
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1044.
--------------------------------------
Resolution: Cannot Reproduce
This is almost certainly an issue with your chosen XML parser.
> 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.
[jira] Commented: (TAP5-1044) When using a doctype, elements are
rendered with default attribute values
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841346#action_12841346 ]
Howard M. Lewis Ship commented on TAP5-1044:
--------------------------------------------
Please search the archives about this ... it has come up in the past, and is usually traced back to the XML parser you are using.
> 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.
[jira] Closed: (TAP5-1044) When using a doctype, elements are
rendered with default attribute values
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1044.
--------------------------------------
Resolution: Cannot Reproduce
This is almost certainly an issue with your chosen XML parser.
> 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.