Reputation: 35400
Why do built-in ASP.NET controls generate HTML that VS2010 tells me is not HTML5 compatible? Is there a way around it?
Example: Drop a PasswordRecovery
control onto your page and ask it to convert the UserName (or Question or Answer) view into a template. The generated HTML contains attributes like cellpadding
and cellspacing
and VS2010 underlines them with the warning: Attribute 'cellspacing' is not a valid attribute of element 'table'.
N.B. You have to set Target Schema to HTML5 to see these warnings.
Upvotes: 1
Views: 686
Reputation: 7030
At first you should install Web Standards Update And then change the XHTML 1.0 transitional opening incantation to HTML 5 i.e.
<!DOCTYPE html>
<html>
Upvotes: 1