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

Last post 08-07-2007, 4:22 PM by Adam. 9 replies.
Sort Posts: Previous Next
  •  08-03-2007, 3:28 PM 32159

    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
  •  08-06-2007, 9:48 AM 32179 in reply to 32159

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

    Max,
     
    Please check this example:
     
     
    If you can't reproduce the problem in this example, please download the control again.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-06-2007, 10:06 AM 32186 in reply to 32179

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

    As I said in my first post, yes, this can be reproduced in your XHTML demo.  I just did it again using the link you gave me and it gave the same result.
  •  08-07-2007, 9:12 AM 32222 in reply to 32186

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

    Maximus5684,

    Is there any wrong with the following code?
     
    <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>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-07-2007, 9:21 AM 32224 in reply to 32222

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

    No offense, but ARE YOU BLIND? Of course there's something wrong with it!  All of the style attributes are doubled!  Not only is this messy and annoying, but it won't validate!
  •  08-07-2007, 10:21 AM 32232 in reply to 32224

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

    Maximus5684,
     
    I am not blind.
     
    In XHTML, all tag attributes, such as <p align="center"> must be enclosed within double quotes. You no longer have the choice of either single or double quotes
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-07-2007, 10:43 AM 32235 in reply to 32232

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

    I'm not seeing any single quotes in this text.  Let me highlight for you what is going on:
     
    <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>
    See the highlited attributes?  Two style attributes in ONE TAG.  This is the problem I am having.
  •  08-07-2007, 12:50 PM 32245 in reply to 32235

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

    Maximus5684:
    I'm not seeing any single quotes in this text.  Let me highlight for you what is going on:
     
    <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>
    See the highlited attributes?  Two style attributes in ONE TAG.  This is the problem I am having.
     
    You are correct. That's a bug.
     
    Demo:
     
     
    Please download the control again and replace the files under Scripts folder.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-07-2007, 2:49 PM 32252 in reply to 32245

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

    Did as you asked and still no change.  Deleted all files under the Scripts folder, downloaded the .zip file from my original email, and extracted the contents of the Scripts folder into the old Scripts folder.  Still the same problem.
     
    I must have an old link.  Please email me the new link at jwhitley@naaccr.org.
     
    Thank you.
  •  08-07-2007, 4:22 PM 32256 in reply to 32252

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

View as RSS news feed in XML