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

查看:31
本文介绍了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天全站免登陆