Eclipse Warnings Invalid location tag on valid HTML5 tags

六眼飞鱼酱① 提交于 2020-01-24 22:08:28

问题


I'm getting Invalid location tag Warning on some tags with Eclipse Neon.3. For example:

<a ...><h1></h1></a>

is valid on HTML5 but eclipse showing Invalid location tag warning for <H1>.

I've seen another question on Why does Eclipse creates warning on HTML script tag?. I don't know it's the same problem as this or not (that question is implying to the Undefined attribute name Warning). but asked on +6 years ago.

Another old Question (+5 years ago) with about the same problem: error on eclipse Invalid location of tag (b). But it's not about how eclipse throw warning for valid HTML5 tags.

How can I fix this warning?


回答1:


The stupid Eclipse does not fit HTML 5 syntax, although it's already at least 5 years after HTML 5 standard release out. The only way you can do is to force Eclipse "ignore" these warnings. See this post.



来源:https://stackoverflow.com/questions/43742158/eclipse-warnings-invalid-location-tag-on-valid-html5-tags

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!