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

2019-04-17 23:38发布

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

2条回答
三岁会撩人
2楼-- · 2019-04-17 23:58

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

查看更多
Explosion°爆炸
3楼-- · 2019-04-18 00:12

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

查看更多
登录 后发表回答