Warnings of valid HTML5 attributes in Eclipse

前端 未结 6 601
长情又很酷
长情又很酷 2020-12-01 09:13

I use Eclipse and I write jsp files with HTML5 content. So I have for example this line:

I

6条回答
  •  感情败类
    2020-12-01 09:35

    Eclipse 3.6 introduced a new field under:

    Validation -> HTML Syntax: Ignore specified attribute names in validation

    Add the OpenGraph, RDFa or other non-HTML5 attributes you want the validator to ignore:

    Ignore specified attribute names in validation

    You will need to re-validate the project, then the warnings will be gone.

提交回复
热议问题