NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 752 - Asp.net login in control automatically adds cellspacing=0 and cell padding =0
Asp.net login in control automatically adds cellspacing=0 and cell padding =0
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 normal
Assigned To: Nobody
https://rightpersonrightrole.com
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-16 07:43 CEST by broberts
Modified: 2010-06-16 08:39 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description broberts 2010-06-16 07:43:33 CEST
I get the following error: 

 Line 65, Column 108: The cellspacing attribute on the table element is obsolete. Use CSS instead. 
…entPlaceHolder1_Login1" class="login_settings" cellspacing="0" cellpadding="0">

I have looked at a nuber of ways to stop the cellpadding and cellspacing elements from being added .... but these items can not be prevented from being added to the markup via VS2010.  Not sure if this has to do with ASP.Net or HTML 5.

snippet from .aspx file
        <asp:Login ID="Login1"
            runat="server" 
            OnLoggedIn="Login1_LoggedIn"
            DestinationPageUrl ="~/SecurePages/XXX.aspx"  
            TitleText ="Sign In To Your Account"
            EnableViewState="false" CssClass="login_settings"
            >
            <LayoutTemplate>
                <table
                    style="border-collapse:collapse;"
                    > 
   
snippet from marked up page:
65.<table id="ctl00_ContentPlaceHolder1_Login1" class="login_settings" cellspacing="0" cellpadding="0">
66.<tr>
67.<td>
68.<table
69.style="border-collapse:collapse;"


.skin file does not contain <asp:login> control. 

BR
Comment 1 Michael[tm] Smith 2010-06-16 08:39:19 CEST
This is not a bug in the validator, nor in "HTML5". The only way to prevent those attributes from being added is to make some change in your own software. And this is not the place to get help with figuring out how to do that.