I have been getting all of these “Validation (): Element ‘x’ is not supported” warnings and I can’t seem to find a way to get rid of them. Here are two examples:
- Validation (XHTML 1.0 Transitional): Attribute ‘name’ is not a valid attribute of element ‘ul’.
- Validation (CSS 2.1): ‘border-radius’ is not a known CSS property name.
I have searched on the web and all solutions point to removing the following folder:
C:\Users\{username}\AppData\Roaming \Microsoft\VisualStudio\10.0\ReflectedSchemas
Which seems to fix 90% of people’s issues, however I don’t have that folder anywhere on my computer!
I am using Visual Studio 10 SP1 and this project is an MVC 3 project using Razor and HTML5.
So can anyone else suggest what else might be causing the issue?
Thanks very much.
Those are valid warnings, not a bug or other sort of “issue.” The list of valid attributes for
<ul>is given in the W3C standards, and it doesn’t includename. Meanwhile,border-radiuswas introduced in CSS 3, which means if you validate against CSS 2.1 it’s not going to work.You can either ignore them or figure out how to suppress those particular warnings in VS2010 (I know how to do that for VC++, but I haven’t used VS for HTML before; there should be some section in the Properties window for it).