You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2010/05/07 01:07:48 UTC

[jira] Closed: (TAP5-1044) When using a doctype, elements are rendered with default attribute values

     [ 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.