Doubling of style="" Attribute when using XHTML Output = "true"

  •  08-03-2007, 3:28 PM

    Doubling of style="" Attribute when using XHTML Output = "true"

    This can be reproduced in your online demo.  Copy this code into your XHTML demo online in HTML view:
     
    <table style="margin-left: auto; margin-right: auto" cellpadding="5">
        <tbody>
            <tr>
                <td style="width: 100%; text-align: center" valign="top"><a href="http://www.google.com/" target="blank"><img style="border-right: medium none; border-top: medium none; border-left: medium none; width: 72px; border-bottom: medium none; height: 47px" alt="" src=http://www.google.com/logo.gif /></a> <br />
                <strong><span><a href="http://www.google.com/" target="_blank">Google</a></span></strong></td>
            </tr>
        </tbody>
    </table>
    Switch to Normal view, then back to HTML view.  All of the style attributes have doubled, like this:
     
    <table style="margin-left: auto; margin-right: auto" cellpadding="5" style="margin-left: auto; margin-right: auto">
        <tbody>
            <tr>
                <td style="width: 100%; text-align: center" valign="top" style="width: 100%; text-align: center"><a href="http://www.google.com/" target="blank"><img style="border-right: medium none; border-top: medium none; border-left: medium none; width: 72px; border-bottom: medium none; height: 47px" alt="" src="http://www.google.com/logo.gif" style="border-right: medium none; border-top: medium none; border-left: medium none; width: 72px; border-bottom: medium none; height: 47px" /></a>
                <br />
                <strong><span><a href="http://www.google.com/" target="_blank">Google</a></span></strong></td>
            </tr>
        </tbody>
    </table>
    Please let me know what is going on here.
     
    Max
View Complete Thread