Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top