In my layout layout file, I have an HTML5 type:
<!DOCTYPE html>
But in one of my views, I implemented a Twitter button, and Visual Studio complains. The code:
<a href="twitterurl..." class="twitter-hashtag-button" data-size="large" data-url="http://google.com">Tweet #Google</a>
The warning I get:
Warning Validation (XHTML 1.0 Transitional): Attribute 'data-size' is not a valid attribute of element 'a'.
I am using ASP.NET MVC3 and Visual Studio 2010.
source
share