Aptana在不应该警告脚本和链接标签的情况下发出警告 [英] Aptana Warns about script and link tags when it shouldn't

查看:92
本文介绍了Aptana在不应该警告脚本和链接标签的情况下发出警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Aptana Studio 3,版本:3.1.3.201205292243,Win7 64位,并且我注意到上次更新后,Aptana警告我(垂直注释)我应该修剪空"标签,但是这些是链接外部js文件的普通脚本标签,如下所示:

I'm running Aptana Studio 3, build: 3.1.3.201205292243, Win7 64bit, and I've noticed that after the last update, Aptana is warning me (annotations on the vertical) that I should "trim empty " tags, but these are normal script tags linking an external js file like this:

    <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->

    <link rel="shortcut icon" href="/favicon.ico" />
    <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <script src="js/jquery.lightbox-0.5.js"></script>
    <script src="js/flickrapi3.js"></script>
    <link rel="stylesheet" href="css/jquery.lightbox-0.5.css" />
    <link rel="stylesheet" href="css/flickrStyle.css" />

此外,它还会警告我链接标签中的rel属性具有无效值",但是这些是该发行版的HTML5模板Aptana捆绑包中包含的默认值.

Furthermore, it also warns me about the rel attribute inside the link tag as having an "invalid value" and yet these are the defaults included in the HTML5 template Aptana bundles with the release.

我已经检查了首选项">编辑器">文本编辑器",我看到了注释设置,但是看不到可以完全纠正这些警告的地方.我在这里完全缺少什么吗?这些是已知错误吗?我该如何解决这些问题?

I've checked in Preferences>Editors>Text Editors and I see annotation settings but I don't see where I can correct these completely off the wall warnings. Am I missing something entirely here? Are these known bugs? How do I correct these issue?

推荐答案

这只是一个技巧,将</script>换行,警告将消失,如下所示:

It's just a trick, and make the </script> in a new line, the warning will disappear, like this below:

<script src="js/jquery.lightbox-0.5.js">
</script>

这篇关于Aptana在不应该警告脚本和链接标签的情况下发出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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