Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you get rid of "Validation (XHTML 1.0 Transitional): Attribute 'data-bind' is not a valid attribute of element"

Is there a nice way I can get rid of this in visual studio 10 when using knockoutjs? It just pollutes the warnings.

like image 557
Keith Nicholas Avatar asked Oct 25 '11 21:10

Keith Nicholas


2 Answers

Yes you can do this in VS 2010 SP1 and VS 11 Developer Preview

Tools > Options

Select:

Text Editing > HTML > Validation

And select XHTML5 or HTML5 from the drop down list

enter image description here

like image 133
Darbio Avatar answered Nov 20 '22 09:11

Darbio


After doing what Darbio said above, I also add this <!DOCTYPE/> on top of the page.

like image 28
user2686690 Avatar answered Nov 20 '22 09:11

user2686690