Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I keep getting HTML5 syntax errors with MVC3

Tags:

asp.net-mvc

Are these kind of errors valid and how can I resolve. Doesn't HTML5 allow this code?

<button title="" disabled="disabled" >&gt;&gt;</button>

Validation: (HTML5) - the values permitted for this attribute do not include 'disabled'

like image 851
Marie Avatar asked Jun 17 '11 19:06

Marie


2 Answers

Check Web Standards Update for Microsoft Visual Studio 2010 SP1 that improves html5/css3 validation and intellisense support.

like image 87
UserControl Avatar answered Oct 30 '22 02:10

UserControl


I also had to change my Text-Editor preferences to get VS to recognize the HTML5 controls (for others that arrive here via Google like me).

In VS, go to Tools > Options and select TextEditor/HTML/Validation on the left pane, then select HTML5.

like image 22
WEFX Avatar answered Oct 30 '22 01:10

WEFX