Aptana Studio 3 - 使用 HTML 5 的数据角色标签时的警告 [英] Aptana Studio 3 - Warnings when using data-role Tags of HTML 5
问题描述
我想使用 Aptana Studio 3 来开发 jquery-mobile 项目.由于 jquery-mobile 使用 HTML5,我必须使用诸如 "data-role="header"
之类的标签属性,这对于 HTML5 来说是可以的.
例如:
但是 Aptana 给了我如下警告:
<块引用>未知属性数据角色"
我该如何解决这个问题,或者是 Aptana Studio 3 的错误?
与其说是错误,不如说是缺失的功能.
在 Preferences > Aptana Studio > Validation 中,您可以定义与要忽略的错误/警告匹配的正则表达式.
.*data-role.*
应该这样做.
I want to use Aptana Studio 3 for developing jquery-mobile projects. Since jquery-mobile uses HTML5 I have to use tag attributes like "data-role="header"
which is OK for HTML5.
For example:
<div data-role="header"></div>
But Aptana gives me warnings like:
unknown attribute "data-role"
How can I fix this, or is it an Aptana Studio 3 bug?
It more of a missing feature than a bug.
In Preferences > Aptana Studio > Validation you can define regular expression that match to errors/warnings you want to be ignored.
.*data-role.*
should do it.
这篇关于Aptana Studio 3 - 使用 HTML 5 的数据角色标签时的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!