Aptana Studio 3 - Warnings when using data-role Tags of HTML 5

假如想象 提交于 2019-11-29 05:34:00

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.

I performed below and it resolved the problem.

In Preferences > Aptana Studio > Validation > HTML Tidy Validator > Attributes >> Proprietary attributes --> ignore

This had bugged me for months. I tried the solutions above but they didn't work. What did work for me was turning off HTML Tidy Validator in Aptana 3.2.2.

Preferences -> Aptana Studio -> Validation -> HTML

And then turn off HTML Tidy Validator for build and reconciliation.

Seems to it doesnt support for this, I went through Wikipedia and their doc. So we have to bear this until plug-in comes.

Late response but I found this thread while searching to resolve the same issue, tried the regex solution, which didn't work for me, so came up with this solution, which is at least less drastic than disabling HTML Tidy Validator:

Window > Preferences > Aptana Studio > Validation > HTML Tidy Validator

  • Change Attributes > Proprietary Attributes from Warning to either Ignore or Info.

There are several other frameworks other than jQuery Mobile (Angular for example) where the use of custom attributes is common, so I don't think this is a bad thing to do, as I don't know of any browser that breaks with custom attributes, they just get ignored.

While you're changing HTML Tidy Validator, I'd also recommend removing the warning for elements with no content as often folks populate those through JavaScript. You can do so like this:

  • Change Elements > Trim Empty Elements from Warning to either Ignore or Info.

The correct path to resolve the "unrecognized" issue for my build is: Window > Preferences > Aptana Studio > Validation > HTML Tidy Validator > Elements > Unrecognized elements > Ignore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!