Aptana Studio 3 - 使用数据角色时的警告HTML 5的标签 [英] Aptana Studio 3 - Warnings when using data-role Tags of HTML 5

查看:204
本文介绍了Aptana Studio 3 - 使用数据角色时的警告HTML 5的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Aptana Studio 3开发jquery-mobile项目。由于jquery-mobile使用HTML5,我必须使用标签属性,如data-role =header,这对HTML5来说是可以的。



例如:

 < div data-role =header>< / div> 

但Aptana给了我警告,如:


未知属性data-role


如何修复此问题,或者它是Aptana Studio 3缺陷?

解决方案



在首选项> Aptana Studio>验证中,您可以定义与您想要忽略的错误/警告匹配的正则表达式。



。* 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屋!

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