How do you get rid of “Validation (XHTML 1.0 Trans

2019-04-17 23:51发布

问题:

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

回答1:

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



回答2:

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