質問

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