I am using Twitter bootstrap in JSP(Java Server Pages)
in eclipse. I am trying to use twitter log in/signup form in navbar(navigation-bar), but it gives a warning Undefined attribute name (data-toggle)
Following code gives warning data-toggle="dropdown"
.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Eclipse does not recognize this attribute, but you can configure the HTML Validation preferences to ignore it.
Under Preferences for HTML Files --> Validation there is an option to ignore specified attribute names. If you want you can enter a pattern here such as data-*
.
回答2:
This warning isn't shown with Eclipse Luna so upgrading your Eclipse version should make this go away.