It seems that Eclipse still has some issues checking HTML5 elements and attributes even now.
I run Mars 4.5.1 and I had warnings about the <main> element, even though there are no warnings about the <section> element.
But there is a solution!
Window > Preferences > Web > HTML Files > Validation
โ โ โ โ โ โ โ
Here you can check the box Ignore specified element names in validation and enter the names of any elements that Eclipse does not warn you about correctly.
In your case, you need to check the Ignore specified attribute names in validation checkbox and enter the data-role attribute.
After clicking the "Apply" button, Eclipse will ask you to perform a full check of the project. Select "Yes" and the changes will take effect.
No shorter yellow lines YAY !: D
Redtama Feb 16 '16 at 15:12 2016-02-16 15:12
source share