My IntelliJ reports wrong attributes on certain tags. For example

<div class="btn btn-default btn-xs pull-right" style="margin-left:10px" 
     type="button" data-toggle="modal" data-target="#popupSendReportError">

It reports that attributes type, data-toggle and data-target are not valid attributes. Does anyone know if I need to add some schema for the bootstrap or something else?

Thank you

有帮助吗?

解决方案

The data-* attributes are new in HTML5. So mark your html to be HTML5.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top