Eclipse警告有效HTML5标签上的无效位置标签 [英] Eclipse Warnings Invalid location tag on valid HTML5 tags

查看:239
本文介绍了Eclipse警告有效HTML5标签上的无效位置标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse Neon.3上的某些标签上收到无效的位置标签警告.例如:

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

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

在HTML5上有效,但日食会显示< H1> 无效的位置标记警告.

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

我看到了另一个问题为什么Eclipse在HTML脚本标记上创建警告?.我不知道这与这个问题是否相同(该问题暗示着未定义属性名称警告).但在+6年前问过.

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.

另一个大约有相同问题的旧问题(+5年前):

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.

如何解决此警告?

推荐答案

愚蠢的Eclipse不适合HTML 5语法,尽管距HTML 5标准发布已经至少5年了.唯一的方法是强制Eclipse忽略"这些警告.参见这篇文章.

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.

这篇关于Eclipse警告有效HTML5标签上的无效位置标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆