Bugzilla – Bug 752
Asp.net login in control automatically adds cellspacing=0 and cell padding =0
Last modified: 2010-06-16 08:39:19 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
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.